home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / Technical Docs / Inside Macintosh / New Inside Mac - draft / Processes < prev    next >
MacBinary  |  1992-01-14  |  780.5 KB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Mon Jan 13 04:11:21 1992, modified Tue Jan 14 12:10:47 1992, creator 'HLX2', type 'ONLN', 772480 bytes "Processes" , at 0xbca00 26504 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 50 72 6f 63 65 73 | 73 65 73 00 00 00 00 00 |..Proces|ses.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 0b c9 80 00 | 00 67 88 a5 97 08 39 a5 |........|.g....9.|
|00000060| 98 ca 17 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 01 3c 00 00 |........|.....<..|
|00000080| 49 6e 73 69 64 65 20 4d | 61 63 69 6e 74 6f 73 68 |Inside M|acintosh|
|00000090| 3a 0d 50 72 6f 63 65 73 | 73 65 73 0d f0 09 41 70 |:.Proces|ses...Ap|
|000000a0| 70 6c 65 20 43 6f 6d 70 | 75 74 65 72 2c 20 49 6e |ple Comp|uter, In|
|000000b0| 63 2e 20 0d a9 20 31 39 | 39 31 2c 20 41 70 70 6c |c. .. 19|91, Appl|
|000000c0| 65 20 43 6f 6d 70 75 74 | 65 72 2c 20 49 6e 63 2e |e Comput|er, Inc.|
|000000d0| 0d 41 6c 6c 20 72 69 67 | 68 74 73 20 72 65 73 65 |.All rig|hts rese|
|000000e0| 72 76 65 64 2e 0d 50 72 | 69 6e 74 65 64 20 69 6e |rved..Pr|inted in|
|000000f0| 20 74 68 65 20 55 6e 69 | 74 65 64 20 53 74 61 74 | the Uni|ted Stat|
|00000100| 65 73 20 6f 66 20 0d 41 | 6d 65 72 69 63 61 2e 0d |es of .A|merica..|
|00000110| 54 68 65 20 41 70 70 6c | 65 20 6c 6f 67 6f 20 69 |The Appl|e logo i|
|00000120| 73 20 61 20 72 65 67 69 | 73 74 65 72 65 64 20 74 |s a regi|stered t|
|00000130| 72 61 64 65 6d 61 72 6b | 20 6f 66 20 41 70 70 6c |rademark| of Appl|
|00000140| 65 20 43 6f 6d 70 75 74 | 65 72 2c 20 49 6e 63 2e |e Comput|er, Inc.|
|00000150| 20 55 73 65 20 6f 66 20 | 74 68 65 20 d2 6b 65 79 | Use of |the .key|
|00000160| 62 6f 61 72 64 d3 20 0d | 41 70 70 6c 65 20 6c 6f |board. .|Apple lo|
|00000170| 67 6f 20 28 4f 70 74 69 | 6f 6e 2d 53 68 69 66 74 |go (Opti|on-Shift|
|00000180| 2d 4b 29 20 66 6f 72 20 | 63 6f 6d 6d 65 72 63 69 |-K) for |commerci|
|00000190| 61 6c 20 70 75 72 70 6f | 73 65 73 20 77 69 74 68 |al purpo|ses with|
|000001a0| 6f 75 74 20 74 68 65 20 | 70 72 69 6f 72 20 77 72 |out the |prior wr|
|000001b0| 69 74 74 65 6e 20 63 6f | 6e 73 65 6e 74 20 6f 66 |itten co|nsent of|
|000001c0| 20 0d 41 70 70 6c 65 20 | 6d 61 79 20 63 6f 6e 73 | .Apple |may cons|
|000001d0| 74 69 74 75 74 65 20 74 | 72 61 64 65 6d 61 72 6b |titute t|rademark|
|000001e0| 20 69 6e 66 72 69 6e 67 | 65 6d 65 6e 74 20 61 6e | infring|ement an|
|000001f0| 64 20 75 6e 66 61 69 72 | 20 63 6f 6d 70 65 2d 74 |d unfair| compe-t|
|00000200| 69 74 69 6f 6e 20 69 6e | 20 76 69 6f 6c 61 74 69 |ition in| violati|
|00000210| 6f 6e 20 6f 66 20 66 65 | 64 65 72 61 6c 20 61 6e |on of fe|deral an|
|00000220| 64 20 73 74 61 74 65 20 | 6c 61 77 73 2e 0d 41 70 |d state |laws..Ap|
|00000230| 70 6c 65 20 43 6f 6d 70 | 75 74 65 72 2c 20 49 6e |ple Comp|uter, In|
|00000240| 63 2e 20 0d 32 30 35 32 | 35 20 4d 61 72 69 61 6e |c. .2052|5 Marian|
|00000250| 69 20 41 76 65 6e 75 65 | 20 20 0d 43 75 70 65 72 |i Avenue| .Cuper|
|00000260| 74 69 6e 6f 2c 20 43 41 | 20 20 39 35 30 31 34 2d |tino, CA| 95014-|
|00000270| 36 32 39 39 0d 34 30 38 | 2d 39 39 36 2d 31 30 31 |6299.408|-996-101|
|00000280| 30 20 20 0d 41 70 70 6c | 65 2c 20 74 68 65 20 41 |0 .Appl|e, the A|
|00000290| 70 70 6c 65 20 6c 6f 67 | 6f 2c 20 41 50 44 41 2c |pple log|o, APDA,|
|000002a0| 20 41 70 70 6c 65 4c 69 | 6e 6b 2c 20 41 70 70 6c | AppleLi|nk, Appl|
|000002b0| 65 53 68 61 72 65 2c 20 | 0d 41 70 70 6c 65 54 61 |eShare, |.AppleTa|
|000002c0| 6c 6b 2c 20 41 70 70 6c | 65 20 49 49 47 53 2c 20 |lk, Appl|e IIGS, |
|000002d0| 41 2f 55 58 2c 20 45 74 | 68 65 72 54 61 6c 6b 2c |A/UX, Et|herTalk,|
|000002e0| 20 48 79 70 65 72 43 61 | 72 64 2c 20 48 79 70 65 | HyperCa|rd, Hype|
|000002f0| 72 2d 54 61 6c 6b 2c 20 | 49 6d 61 67 65 57 72 69 |r-Talk, |ImageWri|
|00000300| 74 65 72 2c 20 4c 61 73 | 65 72 57 72 69 74 65 72 |ter, Las|erWriter|
|00000310| 2c 20 4c 6f 63 61 6c 54 | 61 6c 6b 2c 20 4d 61 63 |, LocalT|alk, Mac|
|00000320| 2c 20 4d 61 63 69 6e 74 | 6f 73 68 2c 20 4d 50 57 |, Macint|osh, MPW|
|00000330| 2c 20 4d 75 6c 74 69 46 | 69 6e 64 65 72 2c 20 53 |, MultiF|inder, S|
|00000340| 41 4e 45 2c 20 61 6e 64 | 20 54 6f 6b 65 6e 54 61 |ANE, and| TokenTa|
|00000350| 6c 6b 20 61 72 65 20 72 | 65 67 69 73 74 65 72 65 |lk are r|egistere|
|00000360| 64 20 74 72 61 64 65 2d | 6d 61 72 6b 73 20 6f 66 |d trade-|marks of|
|00000370| 20 41 70 70 6c 65 20 43 | 6f 6d 70 75 74 65 72 2c | Apple C|omputer,|
|00000380| 20 49 6e 63 2e 0d 41 70 | 70 6c 65 20 44 65 73 6b | Inc..Ap|ple Desk|
|00000390| 74 6f 70 20 42 75 73 2c | 20 42 61 6c 6c 6f 6f 6e |top Bus,| Balloon|
|000003a0| 20 48 65 6c 70 2c 20 46 | 69 6e 64 65 72 2c 20 4b | Help, F|inder, K|
|000003b0| 61 6e 6a 69 54 61 6c 6b | 2c 20 4d 6f 6f 66 2c 20 |anjiTalk|, Moof, |
|000003c0| 51 75 69 63 6b 44 72 61 | 77 2c 20 52 65 73 45 64 |QuickDra|w, ResEd|
|000003d0| 69 74 2c 20 54 72 75 65 | 54 79 70 65 2c 20 61 6e |it, True|Type, an|
|000003e0| 64 20 5a 68 6f 6e 67 2d | 57 65 6e 20 54 61 6c 6b |d Zhong-|Wen Talk|
|000003f0| 20 61 72 65 20 74 72 61 | 64 65 2d 6d 61 72 6b 73 | are tra|de-marks|
|00000400| 20 6f 66 20 41 70 70 6c | 65 20 43 6f 6d 70 75 74 | of Appl|e Comput|
|00000410| 65 72 2c 20 49 6e 63 2e | 0d 48 65 6c 76 65 74 69 |er, Inc.|.Helveti|
|00000420| 63 61 20 61 6e 64 20 54 | 69 6d 65 73 20 61 72 65 |ca and T|imes are|
|00000430| 20 0d 72 65 67 69 73 74 | 65 72 65 64 20 74 72 61 | .regist|ered tra|
|00000440| 64 65 6d 61 72 6b 73 20 | 6f 66 20 0d 4c 69 6e 6f |demarks |of .Lino|
|00000450| 74 79 70 65 20 43 6f 6d | 70 61 6e 79 2e 0d 49 54 |type Com|pany..IT|
|00000460| 43 20 5a 61 70 66 20 44 | 69 6e 67 62 61 74 73 20 |C Zapf D|ingbats |
|00000470| 69 73 20 61 20 72 65 67 | 69 73 74 65 72 65 64 20 |is a reg|istered |
|00000480| 74 72 61 64 65 6d 61 72 | 6b 20 6f 66 20 49 6e 74 |trademar|k of Int|
|00000490| 65 72 6e 61 74 69 6f 6e | 61 6c 20 54 79 70 65 66 |ernation|al Typef|
|000004a0| 61 63 65 20 43 6f 72 70 | 6f 72 61 74 69 6f 6e 2e |ace Corp|oration.|
|000004b0| 0d 4d 61 63 50 61 69 6e | 74 20 69 73 20 61 20 72 |.MacPain|t is a r|
|000004c0| 65 67 69 73 74 65 72 65 | 64 20 74 72 61 64 65 2d |egistere|d trade-|
|000004d0| 6d 61 72 6b 20 6f 66 20 | 43 6c 61 72 69 73 20 43 |mark of |Claris C|
|000004e0| 6f 72 70 6f 72 61 74 69 | 6f 6e 2e 0d 4e 75 42 75 |orporati|on..NuBu|
|000004f0| 73 20 69 73 20 61 20 74 | 72 61 64 65 6d 61 72 6b |s is a t|rademark|
|00000500| 20 6f 66 20 54 65 78 61 | 73 20 0d 49 6e 73 74 72 | of Texa|s .Instr|
|00000510| 75 6d 65 6e 74 73 2e 0d | 50 6f 73 74 53 63 72 69 |uments..|PostScri|
|00000520| 70 74 20 69 73 20 61 20 | 72 65 67 69 73 74 65 72 |pt is a |register|
|00000530| 65 64 20 74 72 61 64 65 | 2d 6d 61 72 6b 2c 20 61 |ed trade|-mark, a|
|00000540| 6e 64 20 49 6c 6c 75 73 | 74 72 61 74 6f 72 20 69 |nd Illus|trator i|
|00000550| 73 20 61 20 0d 74 72 61 | 64 65 6d 61 72 6b 2c 20 |s a .tra|demark, |
|00000560| 6f 66 20 41 64 6f 62 65 | 20 53 79 73 74 65 6d 73 |of Adobe| Systems|
|00000570| 20 0d 49 6e 63 6f 72 70 | 6f 72 61 74 65 64 2e 0d | .Incorp|orated..|
|00000580| 53 6f 6e 79 20 69 73 20 | 61 20 72 65 67 69 73 74 |Sony is |a regist|
|00000590| 65 72 65 64 20 74 72 61 | 64 65 6d 61 72 6b 20 6f |ered tra|demark o|
|000005a0| 66 20 53 6f 6e 79 20 43 | 6f 72 70 6f 72 61 74 69 |f Sony C|orporati|
|000005b0| 6f 6e 2e 0d 55 4e 49 58 | 20 69 73 20 61 20 72 65 |on..UNIX| is a re|
|000005c0| 67 69 73 74 65 72 65 64 | 20 74 72 61 64 65 6d 61 |gistered| tradema|
|000005d0| 72 6b 20 6f 66 20 55 4e | 49 58 20 53 79 73 74 65 |rk of UN|IX Syste|
|000005e0| 6d 20 4c 61 62 6f 72 61 | 74 6f 72 69 65 73 2c 20 |m Labora|tories, |
|000005f0| 49 6e 63 2e 0d 53 69 6d | 75 6c 74 61 6e 65 6f 75 |Inc..Sim|ultaneou|
|00000600| 73 6c 79 20 70 75 62 6c | 69 73 68 65 64 20 69 6e |sly publ|ished in|
|00000610| 20 74 68 65 20 55 6e 69 | 74 65 64 20 53 74 61 74 | the Uni|ted Stat|
|00000620| 65 73 20 61 6e 64 20 43 | 61 6e 61 64 61 2e 0d 4c |es and C|anada..L|
|00000630| 69 6d 69 74 65 64 20 57 | 61 72 72 61 6e 74 79 20 |imited W|arranty |
|00000640| 6f 6e 20 4d 65 64 69 61 | 20 61 6e 64 20 52 65 70 |on Media| and Rep|
|00000650| 6c 61 63 65 6d 65 6e 74 | 0d 45 76 65 6e 20 74 68 |lacement|.Even th|
|00000660| 6f 75 67 68 20 41 70 70 | 6c 65 20 68 61 73 20 0d |ough App|le has .|
|00000670| 72 65 76 69 65 77 65 64 | 20 74 68 69 73 20 6d 61 |reviewed| this ma|
|00000680| 6e 75 61 6c 2c 20 41 50 | 50 4c 45 20 4d 41 4b 45 |nual, AP|PLE MAKE|
|00000690| 53 20 4e 4f 20 57 41 52 | 52 41 4e 54 59 20 4f 52 |S NO WAR|RANTY OR|
|000006a0| 20 52 45 50 52 45 53 45 | 4e 54 41 54 49 4f 4e 2c | REPRESE|NTATION,|
|000006b0| 20 45 49 54 48 45 52 20 | 45 58 50 52 45 53 53 20 | EITHER |EXPRESS |
|000006c0| 4f 52 20 49 4d 50 4c 49 | 45 44 2c 20 57 49 54 48 |OR IMPLI|ED, WITH|
|000006d0| 20 52 45 53 50 45 43 54 | 20 54 4f 20 54 48 49 53 | RESPECT| TO THIS|
|000006e0| 20 4d 41 4e 55 41 4c 2c | 20 49 54 53 20 51 55 41 | MANUAL,| ITS QUA|
|000006f0| 4c 49 54 59 2c 20 41 43 | 43 55 52 41 43 59 2c 20 |LITY, AC|CURACY, |
|00000700| 4d 45 52 43 48 41 4e 54 | 2d 41 42 49 4c 49 54 59 |MERCHANT|-ABILITY|
|00000710| 2c 20 4f 52 20 46 49 54 | 4e 45 53 53 20 46 4f 52 |, OR FIT|NESS FOR|
|00000720| 20 41 20 50 41 52 54 49 | 43 55 4c 41 52 20 50 55 | A PARTI|CULAR PU|
|00000730| 52 50 4f 53 45 2e 20 41 | 53 20 41 20 52 45 53 55 |RPOSE. A|S A RESU|
|00000740| 4c 54 2c 20 54 48 49 53 | 20 0d 4d 41 4e 55 41 4c |LT, THIS| .MANUAL|
|00000750| 20 49 53 20 53 4f 4c 44 | 20 d2 41 53 20 0d 49 53 | IS SOLD| .AS .IS|
|00000760| 2c d3 20 41 4e 44 20 59 | 4f 55 2c 20 54 48 45 20 |,. AND Y|OU, THE |
|00000770| 50 55 52 2d 43 48 41 53 | 45 52 2c 20 41 52 45 20 |PUR-CHAS|ER, ARE |
|00000780| 41 53 53 55 4d 49 4e 47 | 20 54 48 45 20 45 4e 54 |ASSUMING| THE ENT|
|00000790| 49 52 45 20 52 49 53 4b | 20 41 53 20 54 4f 20 49 |IRE RISK| AS TO I|
|000007a0| 54 53 20 51 55 41 4c 49 | 54 59 20 41 4e 44 20 0d |TS QUALI|TY AND .|
|000007b0| 41 43 43 55 52 41 43 59 | 2e 20 20 0d 49 4e 20 4e |ACCURACY|. .IN N|
|000007c0| 4f 20 45 56 45 4e 54 20 | 57 49 4c 4c 20 41 50 50 |O EVENT |WILL APP|
|000007d0| 4c 45 20 42 45 20 4c 49 | 41 42 4c 45 20 46 4f 52 |LE BE LI|ABLE FOR|
|000007e0| 20 44 49 52 45 43 54 2c | 20 0d 49 4e 44 49 52 45 | DIRECT,| .INDIRE|
|000007f0| 43 54 2c 20 53 50 45 43 | 49 41 4c 2c 20 0d 49 4e |CT, SPEC|IAL, .IN|
|00000800| 43 49 44 45 4e 54 41 4c | 2c 20 4f 52 20 43 4f 4e |CIDENTAL|, OR CON|
|00000810| 53 45 2d 51 55 45 4e 54 | 49 41 4c 20 44 41 4d 41 |SE-QUENT|IAL DAMA|
|00000820| 47 45 53 20 0d 52 45 53 | 55 4c 54 49 4e 47 20 46 |GES .RES|ULTING F|
|00000830| 52 4f 4d 20 41 4e 59 20 | 0d 44 45 46 45 43 54 20 |ROM ANY |.DEFECT |
|00000840| 4f 52 20 49 4e 41 43 43 | 55 52 41 43 59 20 49 4e |OR INACC|URACY IN|
|00000850| 20 54 48 49 53 20 4d 41 | 4e 55 41 4c 2c 20 65 76 | THIS MA|NUAL, ev|
|00000860| 65 6e 20 69 66 20 61 64 | 76 69 73 65 64 20 6f 66 |en if ad|vised of|
|00000870| 20 74 68 65 20 70 6f 73 | 73 69 62 69 6c 69 74 79 | the pos|sibility|
|00000880| 20 6f 66 20 73 75 63 68 | 20 64 61 6d 61 67 65 73 | of such| damages|
|00000890| 2e 20 20 0d 54 48 45 20 | 57 41 52 52 41 4e 54 59 |. .THE |WARRANTY|
|000008a0| 20 41 4e 44 20 52 45 4d | 45 44 49 45 53 20 53 45 | AND REM|EDIES SE|
|000008b0| 54 20 46 4f 52 54 48 20 | 41 42 4f 56 45 20 41 52 |T FORTH |ABOVE AR|
|000008c0| 45 20 45 58 43 4c 55 53 | 49 56 45 20 41 4e 44 20 |E EXCLUS|IVE AND |
|000008d0| 49 4e 20 4c 49 45 55 20 | 4f 46 20 41 4c 4c 20 0d |IN LIEU |OF ALL .|
|000008e0| 4f 54 48 45 52 53 2c 20 | 4f 52 41 4c 20 4f 52 20 |OTHERS, |ORAL OR |
|000008f0| 0d 57 52 49 54 54 45 4e | 2c 20 45 58 50 52 45 53 |.WRITTEN|, EXPRES|
|00000900| 53 20 4f 52 20 0d 49 4d | 50 4c 49 45 44 2e 20 4e |S OR .IM|PLIED. N|
|00000910| 6f 20 41 70 70 6c 65 20 | 64 65 61 6c 65 72 2c 20 |o Apple |dealer, |
|00000920| 61 67 65 6e 74 2c 20 6f | 72 20 65 6d 70 6c 6f 79 |agent, o|r employ|
|00000930| 65 65 20 69 73 20 0d 61 | 75 74 68 6f 72 69 7a 65 |ee is .a|uthorize|
|00000940| 64 20 74 6f 20 6d 61 6b | 65 20 61 6e 79 20 0d 6d |d to mak|e any .m|
|00000950| 6f 64 69 66 69 63 61 74 | 69 6f 6e 2c 20 65 78 74 |odificat|ion, ext|
|00000960| 65 6e 73 69 6f 6e 2c 20 | 6f 72 20 0d 61 64 64 69 |ension, |or .addi|
|00000970| 74 69 6f 6e 20 74 6f 20 | 74 68 69 73 20 77 61 72 |tion to |this war|
|00000980| 72 61 6e 74 79 2e 20 20 | 0d 53 6f 6d 65 20 73 74 |ranty. |.Some st|
|00000990| 61 74 65 73 20 64 6f 20 | 6e 6f 74 20 61 6c 6c 6f |ates do |not allo|
|000009a0| 77 20 74 68 65 20 65 78 | 63 6c 75 73 69 6f 6e 20 |w the ex|clusion |
|000009b0| 6f 72 20 6c 69 6d 69 74 | 61 74 69 6f 6e 20 6f 66 |or limit|ation of|
|000009c0| 20 0d 69 6d 70 6c 69 65 | 64 20 77 61 72 72 61 6e | .implie|d warran|
|000009d0| 74 69 65 73 20 6f 72 20 | 6c 69 61 62 69 6c 69 74 |ties or |liabilit|
|000009e0| 79 20 66 6f 72 20 69 6e | 63 69 64 65 6e 74 61 6c |y for in|cidental|
|000009f0| 20 6f 72 20 63 6f 6e 73 | 65 71 75 65 6e 74 69 61 | or cons|equentia|
|00000a00| 6c 20 64 61 6d 61 67 65 | 73 2c 20 73 6f 20 74 68 |l damage|s, so th|
|00000a10| 65 20 61 62 6f 76 65 20 | 0d 6c 69 6d 69 74 61 74 |e above |.limitat|
|00000a20| 69 6f 6e 20 6f 72 20 65 | 78 63 6c 75 73 69 6f 6e |ion or e|xclusion|
|00000a30| 20 6d 61 79 20 6e 6f 74 | 20 61 70 70 6c 79 20 74 | may not| apply t|
|00000a40| 6f 20 79 6f 75 2e 20 54 | 68 69 73 20 77 61 72 72 |o you. T|his warr|
|00000a50| 61 6e 74 79 20 67 69 76 | 65 73 20 79 6f 75 20 73 |anty giv|es you s|
|00000a60| 70 65 63 69 66 69 63 20 | 6c 65 67 61 6c 20 72 69 |pecific |legal ri|
|00000a70| 67 68 74 73 2c 20 61 6e | 64 20 79 6f 75 20 6d 61 |ghts, an|d you ma|
|00000a80| 79 20 61 6c 73 6f 20 68 | 61 76 65 20 6f 74 68 65 |y also h|ave othe|
|00000a90| 72 20 72 69 67 68 74 73 | 20 77 68 69 63 68 20 76 |r rights| which v|
|00000aa0| 61 72 79 20 66 72 6f 6d | 20 73 74 61 74 65 20 74 |ary from| state t|
|00000ab0| 6f 20 73 74 61 74 65 2e | 0d 54 68 65 20 50 72 6f |o state.|.The Pro|
|00000ac0| 63 65 73 73 20 4d 61 6e | 61 67 65 72 0d 41 62 6f |cess Man|ager.Abo|
|00000ad0| 75 74 20 74 68 65 20 50 | 72 6f 63 65 73 73 20 4d |ut the P|rocess M|
|00000ae0| 61 6e 61 67 65 72 14 14 | 31 2d 33 0d 48 6f 77 20 |anager..|1-3.How |
|00000af0| 74 68 65 20 50 72 6f 63 | 65 73 73 20 4d 61 6e 61 |the Proc|ess Mana|
|00000b00| 67 65 72 20 43 72 65 61 | 74 65 73 20 50 72 6f 63 |ger Crea|tes Proc|
|00000b10| 65 73 73 65 73 14 14 31 | 2d 34 0d 48 6f 77 20 74 |esses..1|-4.How t|
|00000b20| 68 65 20 50 72 6f 63 65 | 73 73 20 4d 61 6e 61 67 |he Proce|ss Manag|
|00000b30| 65 72 20 53 63 68 65 64 | 75 6c 65 73 20 50 72 6f |er Sched|ules Pro|
|00000b40| 63 65 73 73 65 73 14 14 | 31 2d 35 0d 48 6f 77 20 |cesses..|1-5.How |
|00000b50| 59 6f 75 72 20 41 70 70 | 6c 69 63 61 74 69 6f 6e |Your App|lication|
|00000b60| 20 53 70 65 63 69 66 69 | 65 73 20 53 63 68 65 64 | Specifi|es Sched|
|00000b70| 75 6c 69 6e 67 20 4f 70 | 74 69 6f 6e 73 14 14 31 |uling Op|tions..1|
|00000b80| 2d 37 0d 55 73 69 6e 67 | 20 74 68 65 20 50 72 6f |-7.Using| the Pro|
|00000b90| 63 65 73 73 20 4d 61 6e | 61 67 65 72 14 14 31 2d |cess Man|ager..1-|
|00000ba0| 38 0d 4f 70 65 6e 69 6e | 67 20 6f 72 20 50 72 69 |8.Openin|g or Pri|
|00000bb0| 6e 74 69 6e 67 20 46 69 | 6c 65 73 20 66 72 6f 6d |nting Fi|les from|
|00000bc0| 20 74 68 65 20 46 69 6e | 64 65 72 14 14 31 2d 38 | the Fin|der..1-8|
|00000bd0| 0d 47 65 74 74 69 6e 67 | 20 49 6e 66 6f 72 6d 61 |.Getting| Informa|
|00000be0| 74 69 6f 6e 20 41 62 6f | 75 74 20 4f 74 68 65 72 |tion Abo|ut Other|
|00000bf0| 20 50 72 6f 63 65 73 73 | 65 73 14 14 31 2d 38 0d | Process|es..1-8.|
|00000c00| 4c 61 75 6e 63 68 69 6e | 67 20 4f 74 68 65 72 20 |Launchin|g Other |
|00000c10| 41 70 70 6c 69 63 61 74 | 69 6f 6e 73 14 14 31 2d |Applicat|ions..1-|
|00000c20| 31 31 0d 4c 61 75 6e 63 | 68 69 6e 67 20 44 65 73 |11.Launc|hing Des|
|00000c30| 6b 20 41 63 63 65 73 73 | 6f 72 69 65 73 14 14 31 |k Access|ories..1|
|00000c40| 2d 31 35 0d 54 65 72 6d | 69 6e 61 74 69 6e 67 20 |-15.Term|inating |
|00000c50| 61 6e 20 41 70 70 6c 69 | 63 61 74 69 6f 6e 14 14 |an Appli|cation..|
|00000c60| 31 2d 31 35 0d 50 72 6f | 63 65 73 73 20 4d 61 6e |1-15.Pro|cess Man|
|00000c70| 61 67 65 72 20 52 65 66 | 65 72 65 6e 63 65 14 14 |ager Ref|erence..|
|00000c80| 31 2d 31 37 0d 43 6f 6e | 73 74 61 6e 74 73 14 14 |1-17.Con|stants..|
|00000c90| 31 2d 31 37 0d 47 65 73 | 74 61 6c 74 20 53 65 6c |1-17.Ges|talt Sel|
|00000ca0| 65 63 74 6f 72 20 61 6e | 64 20 52 65 73 70 6f 6e |ector an|d Respon|
|00000cb0| 73 65 20 42 69 74 73 14 | 14 31 2d 31 37 0d 50 72 |se Bits.|.1-17.Pr|
|00000cc0| 6f 63 65 73 73 20 49 64 | 65 6e 74 69 66 69 63 61 |ocess Id|entifica|
|00000cd0| 74 69 6f 6e 20 43 6f 6e | 73 74 61 6e 74 73 14 14 |tion Con|stants..|
|00000ce0| 31 2d 31 38 0d 4c 61 75 | 6e 63 68 20 4f 70 74 69 |1-18.Lau|nch Opti|
|00000cf0| 6f 6e 73 14 14 31 2d 31 | 38 0d 44 61 74 61 20 53 |ons..1-1|8.Data S|
|00000d00| 74 72 75 63 74 75 72 65 | 73 14 14 31 2d 32 30 0d |tructure|s..1-20.|
|00000d10| 50 72 6f 63 65 73 73 20 | 53 65 72 69 61 6c 20 4e |Process |Serial N|
|00000d20| 75 6d 62 65 72 14 14 31 | 2d 32 30 0d 50 72 6f 63 |umber..1|-20.Proc|
|00000d30| 65 73 73 20 49 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ess Info|rmation |
|00000d40| 52 65 63 6f 72 64 14 14 | 31 2d 32 30 0d 4c 61 75 |Record..|1-20.Lau|
|00000d50| 6e 63 68 20 50 61 72 61 | 6d 65 74 65 72 20 42 6c |nch Para|meter Bl|
|00000d60| 6f 63 6b 14 14 31 2d 32 | 33 0d 41 70 70 6c 69 63 |ock..1-2|3.Applic|
|00000d70| 61 74 69 6f 6e 20 50 61 | 72 61 6d 65 74 65 72 73 |ation Pa|rameters|
|00000d80| 20 52 65 63 6f 72 64 14 | 14 31 2d 32 34 0d 52 6f | Record.|.1-24.Ro|
|00000d90| 75 74 69 6e 65 73 14 14 | 31 2d 32 35 0d 47 65 74 |utines..|1-25.Get|
|00000da0| 74 69 6e 67 20 50 72 6f | 63 65 73 73 20 49 6e 66 |ting Pro|cess Inf|
|00000db0| 6f 72 6d 61 74 69 6f 6e | 14 14 31 2d 32 35 0d 4c |ormation|..1-25.L|
|00000dc0| 61 75 6e 63 68 69 6e 67 | 20 41 70 70 6c 69 63 61 |aunching| Applica|
|00000dd0| 74 69 6f 6e 73 20 61 6e | 64 20 44 65 73 6b 20 41 |tions an|d Desk A|
|00000de0| 63 63 65 73 73 6f 72 69 | 65 73 14 14 31 2d 33 30 |ccessori|es..1-30|
|00000df0| 0d 54 65 72 6d 69 6e 61 | 74 69 6e 67 20 50 72 6f |.Termina|ting Pro|
|00000e00| 63 65 73 73 65 73 14 14 | 31 2d 33 33 0d 53 75 6d |cesses..|1-33.Sum|
|00000e10| 6d 61 72 79 20 6f 66 20 | 74 68 65 20 50 72 6f 63 |mary of |the Proc|
|00000e20| 65 73 73 20 4d 61 6e 61 | 67 65 72 14 14 31 2d 33 |ess Mana|ger..1-3|
|00000e30| 34 0d 31 54 68 65 20 50 | 72 6f 63 65 73 73 20 4d |4.1The P|rocess M|
|00000e40| 61 6e 61 67 65 72 0d 54 | 68 69 73 20 63 68 61 70 |anager.T|his chap|
|00000e50| 74 65 72 20 64 65 73 63 | 72 69 62 65 73 20 74 68 |ter desc|ribes th|
|00000e60| 65 20 50 72 6f 63 65 73 | 73 20 4d 61 6e 61 67 65 |e Proces|s Manage|
|00000e70| 72 2c 20 74 68 65 20 70 | 61 72 74 20 6f 66 20 74 |r, the p|art of t|
|00000e80| 68 65 20 4d 61 63 69 6e | 74 6f 73 68 20 4f 70 65 |he Macin|tosh Ope|
|00000e90| 72 61 74 69 6e 67 20 53 | 79 73 74 65 6d 20 74 68 |rating S|ystem th|
|00000ea0| 61 74 20 70 72 6f 76 69 | 64 65 73 20 61 20 63 6f |at provi|des a co|
|00000eb0| 6f 70 65 72 61 74 69 76 | 65 20 6d 75 6c 74 69 74 |operativ|e multit|
|00000ec0| 61 73 6b 69 6e 67 20 65 | 6e 76 69 72 6f 6e 6d 65 |asking e|nvironme|
|00000ed0| 6e 74 2e 20 54 68 65 20 | 50 72 6f 63 65 73 73 20 |nt. The |Process |
|00000ee0| 4d 61 6e 61 67 65 72 20 | 63 6f 6e 74 72 6f 6c 73 |Manager |controls|
|00000ef0| 20 61 63 63 65 73 73 20 | 74 6f 20 73 68 61 72 65 | access |to share|
|00000f00| 64 20 72 65 73 6f 75 72 | 63 65 73 20 61 6e 64 20 |d resour|ces and |
|00000f10| 6d 61 6e 61 67 65 73 20 | 74 68 65 20 73 63 68 65 |manages |the sche|
|00000f20| 64 75 6c 69 6e 67 20 61 | 6e 64 20 65 78 65 63 75 |duling a|nd execu|
|00000f30| 74 69 6f 6e 20 6f 66 20 | 61 70 70 6c 69 63 61 74 |tion of |applicat|
|00000f40| 69 6f 6e 73 2e 20 54 68 | 65 20 46 69 6e 64 65 72 |ions. Th|e Finder|
|00000f50| 20 75 73 65 73 20 74 68 | 65 20 50 72 6f 63 65 73 | uses th|e Proces|
|00000f60| 73 20 4d 61 6e 61 67 65 | 72 20 74 6f 20 6c 61 75 |s Manage|r to lau|
|00000f70| 6e 63 68 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 |nch your| applica|
|00000f80| 74 69 6f 6e 20 77 68 65 | 6e 20 74 68 65 20 75 73 |tion whe|n the us|
|00000f90| 65 72 20 6f 70 65 6e 73 | 20 65 69 74 68 65 72 20 |er opens| either |
|00000fa0| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00000fb0| 20 6f 72 20 61 20 64 6f | 63 75 6d 65 6e 74 20 63 | or a do|cument c|
|00000fc0| 72 65 61 74 65 64 20 62 | 79 20 79 6f 75 72 20 61 |reated b|y your a|
|00000fd0| 70 70 6c 69 63 61 74 69 | 6f 6e 2e 20 54 68 69 73 |pplicati|on. This|
|00000fe0| 20 63 68 61 70 74 65 72 | 20 64 69 73 63 75 73 73 | chapter| discuss|
|00000ff0| 65 73 20 68 6f 77 20 79 | 6f 75 72 20 61 70 70 6c |es how y|our appl|
|00001000| 69 63 61 74 69 6f 6e 20 | 63 61 6e 20 63 6f 6e 74 |ication |can cont|
|00001010| 72 6f 6c 20 69 74 73 20 | 65 78 65 63 75 74 69 6f |rol its |executio|
|00001020| 6e 20 61 6e 64 20 67 65 | 74 20 69 6e 66 6f 72 6d |n and ge|t inform|
|00001030| 61 74 69 6f 6e d1 66 6f | 72 20 65 78 61 6d 70 6c |ation.fo|r exampl|
|00001040| 65 2c 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |e, the n|umber of|
|00001050| 20 66 72 65 65 20 62 79 | 74 65 73 20 69 6e 20 74 | free by|tes in t|
|00001060| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e d5 73 |he appli|cation.s|
|00001070| 20 68 65 61 70 d1 61 62 | 6f 75 74 20 69 74 73 65 | heap.ab|out itse|
|00001080| 6c 66 20 6f 72 20 61 6e | 79 20 6f 74 68 65 72 20 |lf or an|y other |
|00001090| 6f 70 65 6e 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |open app|lication|
|000010a0| 2e 0d 59 6f 75 20 73 68 | 6f 75 6c 64 20 72 65 61 |..You sh|ould rea|
|000010b0| 64 20 74 68 69 73 20 63 | 68 61 70 74 65 72 20 66 |d this c|hapter f|
|000010c0| 6f 72 20 61 6e 20 6f 76 | 65 72 76 69 65 77 20 6f |or an ov|erview o|
|000010d0| 66 20 68 6f 77 20 74 68 | 65 20 50 72 6f 63 65 73 |f how th|e Proces|
|000010e0| 73 20 4d 61 6e 61 67 65 | 72 20 73 63 68 65 64 75 |s Manage|r schedu|
|000010f0| 6c 65 73 20 61 70 70 6c | 69 63 61 74 69 6f 6e 73 |les appl|ications|
|00001100| 20 61 6e 64 20 6c 6f 61 | 64 73 20 74 68 65 6d 20 | and loa|ds them |
|00001110| 69 6e 74 6f 20 6d 65 6d | 6f 72 79 2e 20 49 66 20 |into mem|ory. If |
|00001120| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00001130| 20 6e 65 65 64 73 20 74 | 6f 20 6c 61 75 6e 63 68 | needs t|o launch|
|00001140| 20 6f 74 68 65 72 20 61 | 70 70 6c 69 63 61 74 69 | other a|pplicati|
|00001150| 6f 6e 73 2c 20 79 6f 75 | 20 6e 65 65 64 20 74 6f |ons, you| need to|
|00001160| 20 72 65 61 64 20 74 68 | 69 73 20 63 68 61 70 74 | read th|is chapt|
|00001170| 65 72 20 66 6f 72 20 69 | 6e 66 6f 72 6d 61 74 69 |er for i|nformati|
|00001180| 6f 6e 20 6f 6e 20 74 68 | 65 20 68 69 67 68 2d 6c |on on th|e high-l|
|00001190| 65 76 65 6c 20 66 75 6e | 63 74 69 6f 6e 20 74 68 |evel fun|ction th|
|000011a0| 61 74 20 6c 65 74 73 20 | 79 6f 75 72 20 61 70 70 |at lets |your app|
|000011b0| 6c 69 63 61 74 69 6f 6e | 20 6c 61 75 6e 63 68 20 |lication| launch |
|000011c0| 6f 74 68 65 72 20 61 70 | 70 6c 69 63 61 74 69 6f |other ap|plicatio|
|000011d0| 6e 73 2e 0d 41 6c 74 68 | 6f 75 67 68 20 65 61 72 |ns..Alth|ough ear|
|000011e0| 6c 69 65 72 20 76 65 72 | 73 69 6f 6e 73 20 6f 66 |lier ver|sions of|
|000011f0| 20 73 79 73 74 65 6d 20 | 73 6f 66 74 77 61 72 65 | system |software|
|00001200| 20 70 72 6f 76 69 64 65 | 20 70 72 6f 63 65 73 73 | provide| process|
|00001210| 20 6d 61 6e 61 67 65 6d | 65 6e 74 2c 20 74 68 65 | managem|ent, the|
|00001220| 20 50 72 6f 63 65 73 73 | 20 4d 61 6e 61 67 65 72 | Process| Manager|
|00001230| 20 69 73 20 61 76 61 69 | 6c 61 62 6c 65 20 74 6f | is avai|lable to|
|00001240| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|00001250| 6e 20 6f 6e 6c 79 20 69 | 6e 20 73 79 73 74 65 6d |n only i|n system|
|00001260| 20 73 6f 66 74 77 61 72 | 65 20 76 65 72 73 69 6f | softwar|e versio|
|00001270| 6e 20 37 2e 30 20 61 6e | 64 20 6c 61 74 65 72 2e |n 7.0 an|d later.|
|00001280| 20 54 68 65 20 50 72 6f | 63 65 73 73 20 4d 61 6e | The Pro|cess Man|
|00001290| 61 67 65 72 20 70 72 6f | 76 69 64 65 73 20 61 20 |ager pro|vides a |
|000012a0| 63 6f 6f 70 65 72 61 74 | 69 76 65 20 6d 75 6c 74 |cooperat|ive mult|
|000012b0| 69 74 61 73 6b 69 6e 67 | 20 65 6e 76 69 72 6f 6e |itasking| environ|
|000012c0| 6d 65 6e 74 2c 20 73 69 | 6d 69 6c 61 72 20 74 6f |ment, si|milar to|
|000012d0| 20 74 68 65 20 66 65 61 | 74 75 72 65 73 20 70 72 | the fea|tures pr|
|000012e0| 6f 76 69 64 65 64 20 62 | 79 20 74 68 65 20 4d 75 |ovided b|y the Mu|
|000012f0| 6c 74 69 46 69 6e 64 65 | 72 20 6f 70 74 69 6f 6e |ltiFinde|r option|
|00001300| 20 69 6e 20 65 61 72 6c | 69 65 72 20 76 65 72 73 | in earl|ier vers|
|00001310| 69 6f 6e 73 20 6f 66 20 | 73 79 73 74 65 6d 20 73 |ions of |system s|
|00001320| 6f 66 74 77 61 72 65 2e | 20 55 73 65 20 74 68 65 |oftware.| Use the|
|00001330| 20 47 65 73 74 61 6c 74 | 20 66 75 6e 63 74 69 6f | Gestalt| functio|
|00001340| 6e 20 74 6f 20 66 69 6e | 64 20 6f 75 74 20 69 66 |n to fin|d out if|
|00001350| 20 74 68 65 20 50 72 6f | 63 65 73 73 20 4d 61 6e | the Pro|cess Man|
|00001360| 61 67 65 72 20 72 6f 75 | 74 69 6e 65 73 20 61 72 |ager rou|tines ar|
|00001370| 65 20 61 76 61 69 6c 61 | 62 6c 65 20 61 6e 64 20 |e availa|ble and |
|00001380| 74 6f 20 73 65 65 20 77 | 68 69 63 68 20 66 65 61 |to see w|hich fea|
|00001390| 74 75 72 65 73 20 6f 66 | 20 74 68 65 20 6c 61 75 |tures of| the lau|
|000013a0| 6e 63 68 20 72 6f 75 74 | 69 6e 65 20 61 72 65 20 |nch rout|ine are |
|000013b0| 61 76 61 69 6c 61 62 6c | 65 2e 0d 54 6f 20 75 73 |availabl|e..To us|
|000013c0| 65 20 74 68 69 73 20 63 | 68 61 70 74 65 72 2c 20 |e this c|hapter, |
|000013d0| 79 6f 75 20 73 68 6f 75 | 6c 64 20 62 65 20 66 61 |you shou|ld be fa|
|000013e0| 6d 69 6c 69 61 72 20 77 | 69 74 68 20 68 6f 77 20 |miliar w|ith how |
|000013f0| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00001400| 20 75 73 65 73 20 6d 65 | 6d 6f 72 79 2c 20 61 73 | uses me|mory, as|
|00001410| 20 64 65 73 63 72 69 62 | 65 64 20 69 6e 20 74 68 | describ|ed in th|
|00001420| 65 20 63 68 61 70 74 65 | 72 20 d2 49 6e 74 72 6f |e chapte|r .Intro|
|00001430| 64 75 63 74 69 6f 6e 20 | 74 6f 20 4d 65 6d 6f 72 |duction |to Memor|
|00001440| 79 20 4d 61 6e 61 67 65 | 6d 65 6e 74 d3 20 69 6e |y Manage|ment. in|
|00001450| 20 74 68 69 73 20 62 6f | 6f 6b 2e 20 59 6f 75 20 | this bo|ok. You |
|00001460| 73 68 6f 75 6c 64 20 61 | 6c 73 6f 20 62 65 20 66 |should a|lso be f|
|00001470| 61 6d 69 6c 69 61 72 20 | 77 69 74 68 20 68 6f 77 |amiliar |with how|
|00001480| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|00001490| 6e 20 72 65 63 65 69 76 | 65 73 20 65 76 65 6e 74 |n receiv|es event|
|000014a0| 73 2c 20 61 73 20 64 69 | 73 63 75 73 73 65 64 20 |s, as di|scussed |
|000014b0| 69 6e 20 74 68 65 20 63 | 68 61 70 74 65 72 20 d2 |in the c|hapter .|
|000014c0| 54 68 65 20 45 76 65 6e | 74 20 4d 61 6e 61 67 65 |The Even|t Manage|
|000014d0| 72 d3 20 69 6e 20 49 6e | 73 69 64 65 20 4d 61 63 |r. in In|side Mac|
|000014e0| 69 6e 74 6f 73 68 3a 20 | 54 68 65 20 54 6f 6f 6c |intosh: |The Tool|
|000014f0| 62 6f 78 2e 0d 54 68 69 | 73 20 63 68 61 70 74 65 |box..Thi|s chapte|
|00001500| 72 20 70 72 6f 76 69 64 | 65 73 20 61 6e 20 69 6e |r provid|es an in|
|00001510| 74 72 6f 64 75 63 74 69 | 6f 6e 20 74 6f 20 70 72 |troducti|on to pr|
|00001520| 6f 63 65 73 73 20 6d 61 | 6e 61 67 65 6d 65 6e 74 |ocess ma|nagement|
|00001530| 20 61 6e 64 20 74 68 65 | 6e 20 64 65 73 63 72 69 | and the|n descri|
|00001540| 62 65 73 20 68 6f 77 20 | 79 6f 75 20 63 61 6e 0d |bes how |you can.|
|00001550| 6e 09 63 6f 6e 74 72 6f | 6c 20 74 68 65 20 65 78 |n.contro|l the ex|
|00001560| 65 63 75 74 69 6f 6e 20 | 6f 66 20 79 6f 75 72 20 |ecution |of your |
|00001570| 61 70 70 6c 69 63 61 74 | 69 6f 6e 0d 6e 09 67 65 |applicat|ion.n.ge|
|00001580| 74 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 61 62 |t inform|ation ab|
|00001590| 6f 75 74 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 |out your| applica|
|000015a0| 74 69 6f 6e 0d 6e 09 6c | 61 75 6e 63 68 20 6f 74 |tion.n.l|aunch ot|
|000015b0| 68 65 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 73 |her appl|ications|
|000015c0| 20 6f 72 20 64 65 73 6b | 20 61 63 63 65 73 73 6f | or desk| accesso|
|000015d0| 72 69 65 73 0d 6e 09 67 | 65 74 20 69 6e 66 6f 72 |ries.n.g|et infor|
|000015e0| 6d 61 74 69 6f 6e 20 61 | 62 6f 75 74 20 61 70 70 |mation a|bout app|
|000015f0| 6c 69 63 61 74 69 6f 6e | 73 20 6c 61 75 6e 63 68 |lication|s launch|
|00001600| 65 64 20 62 79 20 79 6f | 75 72 20 61 70 70 6c 69 |ed by yo|ur appli|
|00001610| 63 61 74 69 6f 6e 0d 6e | 09 67 65 6e 65 72 61 74 |cation.n|.generat|
|00001620| 65 20 61 20 6c 69 73 74 | 20 6f 66 20 61 6c 6c 20 |e a list| of all |
|00001630| 6f 70 65 6e 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |open app|lication|
|00001640| 73 20 61 6e 64 20 69 6e | 66 6f 72 6d 61 74 69 6f |s and in|formatio|
|00001650| 6e 20 61 62 6f 75 74 20 | 65 61 63 68 20 6f 6e 65 |n about |each one|
|00001660| 0d 41 62 6f 75 74 20 74 | 68 65 20 50 72 6f 63 65 |.About t|he Proce|
|00001670| 73 73 20 4d 61 6e 61 67 | 65 72 0d 54 68 65 20 50 |ss Manag|er.The P|
|00001680| 72 6f 63 65 73 73 20 4d | 61 6e 61 67 65 72 20 73 |rocess M|anager s|
|00001690| 63 68 65 64 75 6c 65 73 | 20 74 68 65 20 70 72 6f |chedules| the pro|
|000016a0| 63 65 73 73 69 6e 67 20 | 6f 66 20 61 6c 6c 20 61 |cessing |of all a|
|000016b0| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 61 6e 64 20 |pplicati|ons and |
|000016c0| 64 65 73 6b 20 61 63 63 | 65 73 73 6f 72 69 65 73 |desk acc|essories|
|000016d0| 2e 20 49 74 20 61 6c 73 | 6f 20 61 6c 6c 6f 77 73 |. It als|o allows|
|000016e0| 20 6d 75 6c 74 69 70 6c | 65 20 61 70 70 6c 69 63 | multipl|e applic|
|000016f0| 61 74 69 6f 6e 73 20 74 | 6f 20 73 68 61 72 65 20 |ations t|o share |
|00001700| 43 50 55 20 74 69 6d 65 | 20 61 6e 64 20 6f 74 68 |CPU time| and oth|
|00001710| 65 72 20 72 65 73 6f 75 | 72 63 65 73 2e 20 41 70 |er resou|rces. Ap|
|00001720| 70 6c 69 63 61 74 69 6f | 6e 73 20 73 68 61 72 65 |plicatio|ns share|
|00001730| 20 74 68 65 20 61 76 61 | 69 6c 61 62 6c 65 20 6d | the ava|ilable m|
|00001740| 65 6d 6f 72 79 20 61 6e | 64 20 61 63 63 65 73 73 |emory an|d access|
|00001750| 20 74 6f 20 74 68 65 20 | 43 50 55 2e 20 53 65 76 | to the |CPU. Sev|
|00001760| 65 72 61 6c 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |eral app|lication|
|00001770| 73 20 63 61 6e 20 62 65 | 20 6f 70 65 6e 20 28 6c |s can be| open (l|
|00001780| 6f 61 64 65 64 20 69 6e | 74 6f 20 6d 65 6d 6f 72 |oaded in|to memor|
|00001790| 79 29 20 61 74 20 6f 6e | 63 65 2c 20 62 75 74 20 |y) at on|ce, but |
|000017a0| 6f 6e 6c 79 20 6f 6e 65 | 20 75 73 65 73 20 74 68 |only one| uses th|
|000017b0| 65 20 43 50 55 20 61 74 | 20 61 6e 79 20 6f 6e 65 |e CPU at| any one|
|000017c0| 20 74 69 6d 65 2e 0d 54 | 68 65 20 50 72 6f 63 65 | time..T|he Proce|
|000017d0| 73 73 20 4d 61 6e 61 67 | 65 72 20 6d 61 6e 61 67 |ss Manag|er manag|
|000017e0| 65 73 20 74 68 65 20 73 | 63 68 65 64 75 6c 69 6e |es the s|chedulin|
|000017f0| 67 20 6f 66 20 70 72 6f | 63 65 73 73 65 73 2e 20 |g of pro|cesses. |
|00001800| 41 20 70 72 6f 63 65 73 | 73 20 69 73 20 61 6e 20 |A proces|s is an |
|00001810| 6f 70 65 6e 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |open app|lication|
|00001820| 20 6f 72 2c 20 69 6e 20 | 73 6f 6d 65 20 63 61 73 | or, in |some cas|
|00001830| 65 73 2c 20 61 6e 20 6f | 70 65 6e 20 64 65 73 6b |es, an o|pen desk|
|00001840| 20 61 63 63 65 73 73 6f | 72 79 2e 20 28 44 65 73 | accesso|ry. (Des|
|00001850| 6b 20 61 63 63 65 73 73 | 6f 72 69 65 73 20 74 68 |k access|ories th|
|00001860| 61 74 20 61 72 65 20 6f | 70 65 6e 65 64 20 69 6e |at are o|pened in|
|00001870| 20 74 68 65 20 63 6f 6e | 74 65 78 74 20 6f 66 20 | the con|text of |
|00001880| 61 6e 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 61 |an appli|cation a|
|00001890| 72 65 20 6e 6f 74 20 63 | 6f 6e 73 69 64 65 72 65 |re not c|onsidere|
|000018a0| 64 20 70 72 6f 63 65 73 | 73 65 73 2e 29 20 54 68 |d proces|ses.) Th|
|000018b0| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 70 72 6f 63 |e number| of proc|
|000018c0| 65 73 73 65 73 20 69 73 | 20 6c 69 6d 69 74 65 64 |esses is| limited|
|000018d0| 20 6f 6e 6c 79 20 62 79 | 20 61 76 61 69 6c 61 62 | only by| availab|
|000018e0| 6c 65 20 6d 65 6d 6f 72 | 79 2e 0d 54 68 65 20 50 |le memor|y..The P|
|000018f0| 72 6f 63 65 73 73 20 4d | 61 6e 61 67 65 72 20 6d |rocess M|anager m|
|00001900| 61 69 6e 74 61 69 6e 73 | 20 69 6e 66 6f 72 6d 61 |aintains| informa|
|00001910| 74 69 6f 6e 20 61 62 6f | 75 74 20 65 61 63 68 20 |tion abo|ut each |
|00001920| 70 72 6f 63 65 73 73 d1 | 66 6f 72 20 65 78 61 6d |process.|for exam|
|00001930| 70 6c 65 2c 20 74 68 65 | 20 63 75 72 72 65 6e 74 |ple, the| current|
|00001940| 20 73 74 61 74 65 20 6f | 66 20 74 68 65 20 70 72 | state o|f the pr|
|00001950| 6f 63 65 73 73 2c 20 74 | 68 65 20 61 64 64 72 65 |ocess, t|he addre|
|00001960| 73 73 20 61 6e 64 20 73 | 69 7a 65 20 6f 66 20 69 |ss and s|ize of i|
|00001970| 74 73 20 70 61 72 74 69 | 74 69 6f 6e 2c 20 69 74 |ts parti|tion, it|
|00001980| 73 20 74 79 70 65 2c 20 | 69 74 73 20 63 72 65 61 |s type, |its crea|
|00001990| 74 6f 72 2c 20 61 20 63 | 6f 70 79 20 6f 66 20 69 |tor, a c|opy of i|
|000019a0| 74 73 20 6c 6f 77 2d 6d | 65 6d 6f 72 79 20 67 6c |ts low-m|emory gl|
|000019b0| 6f 62 61 6c 73 2c 20 69 | 6e 66 6f 72 6d 61 74 69 |obals, i|nformati|
|000019c0| 6f 6e 20 61 62 6f 75 74 | 20 69 74 73 20 27 53 49 |on about| its 'SI|
|000019d0| 5a 45 27 20 72 65 73 6f | 75 72 63 65 2c 20 61 6e |ZE' reso|urce, an|
|000019e0| 64 20 61 20 70 72 6f 63 | 65 73 73 20 73 65 72 69 |d a proc|ess seri|
|000019f0| 61 6c 20 6e 75 6d 62 65 | 72 2e 20 54 68 69 73 20 |al numbe|r. This |
|00001a00| 70 72 6f 63 65 73 73 20 | 69 6e 66 6f 72 6d 61 74 |process |informat|
|00001a10| 69 6f 6e 20 69 73 20 72 | 65 66 65 72 72 65 64 20 |ion is r|eferred |
|00001a20| 74 6f 20 61 73 20 74 68 | 65 20 63 6f 6e 74 65 78 |to as th|e contex|
|00001a30| 74 20 6f 66 20 61 20 70 | 72 6f 63 65 73 73 2e 20 |t of a p|rocess. |
|00001a40| 54 68 65 20 50 72 6f 63 | 65 73 73 20 4d 61 6e 61 |The Proc|ess Mana|
|00001a50| 67 65 72 20 61 73 73 69 | 67 6e 73 20 61 20 70 72 |ger assi|gns a pr|
|00001a60| 6f 63 65 73 73 20 73 65 | 72 69 61 6c 20 6e 75 6d |ocess se|rial num|
|00001a70| 62 65 72 20 74 6f 20 69 | 64 65 6e 74 69 66 79 20 |ber to i|dentify |
|00001a80| 65 61 63 68 20 70 72 6f | 63 65 73 73 2e 20 41 20 |each pro|cess. A |
|00001a90| 70 72 6f 63 65 73 73 20 | 73 65 72 69 61 6c 20 6e |process |serial n|
|00001aa0| 75 6d 62 65 72 20 69 64 | 65 6e 74 69 66 69 65 73 |umber id|entifies|
|00001ab0| 20 61 20 70 61 72 74 69 | 63 75 6c 61 72 20 69 6e | a parti|cular in|
|00001ac0| 73 74 61 6e 63 65 20 6f | 66 20 61 6e 20 61 70 70 |stance o|f an app|
|00001ad0| 6c 69 63 61 74 69 6f 6e | 3b 20 74 68 69 73 20 6e |lication|; this n|
|00001ae0| 75 6d 62 65 72 20 69 73 | 20 75 6e 69 71 75 65 20 |umber is| unique |
|00001af0| 64 75 72 69 6e 67 20 61 | 20 73 69 6e 67 6c 65 20 |during a| single |
|00001b00| 62 6f 6f 74 20 6f 66 20 | 74 68 65 20 6c 6f 63 61 |boot of |the loca|
|00001b10| 6c 20 6d 61 63 68 69 6e | 65 2e 20 0d 54 68 65 20 |l machin|e. .The |
|00001b20| 66 6f 72 65 67 72 6f 75 | 6e 64 20 70 72 6f 63 65 |foregrou|nd proce|
|00001b30| 73 73 20 69 73 20 74 68 | 65 20 6f 6e 65 20 63 75 |ss is th|e one cu|
|00001b40| 72 72 65 6e 74 6c 79 20 | 69 6e 74 65 72 61 63 74 |rrently |interact|
|00001b50| 69 6e 67 20 77 69 74 68 | 20 74 68 65 20 75 73 65 |ing with| the use|
|00001b60| 72 3b 20 69 74 20 61 70 | 70 65 61 72 73 20 74 6f |r; it ap|pears to|
|00001b70| 20 74 68 65 20 75 73 65 | 72 20 61 73 20 74 68 65 | the use|r as the|
|00001b80| 20 61 63 74 69 76 65 20 | 61 70 70 6c 69 63 61 74 | active |applicat|
|00001b90| 69 6f 6e 2e 20 54 68 65 | 20 66 6f 72 65 67 72 6f |ion. The| foregro|
|00001ba0| 75 6e 64 20 70 72 6f 63 | 65 73 73 20 64 69 73 70 |und proc|ess disp|
|00001bb0| 6c 61 79 73 20 69 74 73 | 20 6d 65 6e 75 20 62 61 |lays its| menu ba|
|00001bc0| 72 2c 20 61 6e 64 20 69 | 74 73 20 77 69 6e 64 6f |r, and i|ts windo|
|00001bd0| 77 73 20 61 72 65 20 69 | 6e 20 66 72 6f 6e 74 20 |ws are i|n front |
|00001be0| 6f 66 20 74 68 65 20 77 | 69 6e 64 6f 77 73 20 6f |of the w|indows o|
|00001bf0| 66 20 61 6c 6c 20 6f 74 | 68 65 72 20 61 70 70 6c |f all ot|her appl|
|00001c00| 69 63 61 74 69 6f 6e 73 | 2e 20 0d 41 20 62 61 63 |ications|. .A bac|
|00001c10| 6b 67 72 6f 75 6e 64 20 | 70 72 6f 63 65 73 73 20 |kground |process |
|00001c20| 69 73 20 61 20 70 72 6f | 63 65 73 73 20 74 68 61 |is a pro|cess tha|
|00001c30| 74 20 69 73 6e d5 74 20 | 63 75 72 72 65 6e 74 6c |t isn.t |currentl|
|00001c40| 79 20 69 6e 74 65 72 61 | 63 74 69 6e 67 20 77 69 |y intera|cting wi|
|00001c50| 74 68 20 74 68 65 20 75 | 73 65 72 2e 20 41 74 20 |th the u|ser. At |
|00001c60| 61 6e 79 20 67 69 76 65 | 6e 20 74 69 6d 65 20 61 |any give|n time a|
|00001c70| 20 70 72 6f 63 65 73 73 | 20 69 73 20 65 69 74 68 | process| is eith|
|00001c80| 65 72 20 69 6e 20 74 68 | 65 20 66 6f 72 65 67 72 |er in th|e foregr|
|00001c90| 6f 75 6e 64 20 6f 72 20 | 74 68 65 20 62 61 63 6b |ound or |the back|
|00001ca0| 67 72 6f 75 6e 64 3b 20 | 61 20 70 72 6f 63 65 73 |ground; |a proces|
|00001cb0| 73 20 63 61 6e 20 73 77 | 69 74 63 68 20 62 65 74 |s can sw|itch bet|
|00001cc0| 77 65 65 6e 20 74 68 65 | 20 74 77 6f 20 73 74 61 |ween the| two sta|
|00001cd0| 74 65 73 20 61 74 20 77 | 65 6c 6c 2d 64 65 66 69 |tes at w|ell-defi|
|00001ce0| 6e 65 64 20 74 69 6d 65 | 73 2e 20 0d 54 68 65 20 |ned time|s. .The |
|00001cf0| 66 6f 72 65 67 72 6f 75 | 6e 64 20 70 72 6f 63 65 |foregrou|nd proce|
|00001d00| 73 73 20 68 61 73 20 66 | 69 72 73 74 20 70 72 69 |ss has f|irst pri|
|00001d10| 6f 72 69 74 79 20 66 6f | 72 20 61 63 63 65 73 73 |ority fo|r access|
|00001d20| 69 6e 67 20 74 68 65 20 | 43 50 55 2e 20 4f 74 68 |ing the |CPU. Oth|
|00001d30| 65 72 20 70 72 6f 63 65 | 73 73 65 73 20 63 61 6e |er proce|sses can|
|00001d40| 20 61 63 63 65 73 73 20 | 74 68 65 20 43 50 55 20 | access |the CPU |
|00001d50| 6f 6e 6c 79 20 77 68 65 | 6e 20 74 68 65 20 66 6f |only whe|n the fo|
|00001d60| 72 65 67 72 6f 75 6e 64 | 20 70 72 6f 63 65 73 73 |reground| process|
|00001d70| 20 79 69 65 6c 64 73 20 | 74 69 6d 65 20 74 6f 20 | yields |time to |
|00001d80| 74 68 65 6d 2e 20 54 68 | 65 72 65 20 69 73 20 6f |them. Th|ere is o|
|00001d90| 6e 6c 79 20 6f 6e 65 20 | 66 6f 72 65 67 72 6f 75 |nly one |foregrou|
|00001da0| 6e 64 20 70 72 6f 63 65 | 73 73 20 61 74 20 61 6e |nd proce|ss at an|
|00001db0| 79 20 6f 6e 65 20 74 69 | 6d 65 2e 20 48 6f 77 65 |y one ti|me. Howe|
|00001dc0| 76 65 72 2c 20 6d 75 6c | 74 69 70 6c 65 20 70 72 |ver, mul|tiple pr|
|00001dd0| 6f 63 65 73 73 65 73 20 | 63 61 6e 20 65 78 69 73 |ocesses |can exis|
|00001de0| 74 20 69 6e 20 74 68 65 | 20 62 61 63 6b 67 72 6f |t in the| backgro|
|00001df0| 75 6e 64 2e 0d 41 6e 20 | 61 70 70 6c 69 63 61 74 |und..An |applicat|
|00001e00| 69 6f 6e 20 74 68 61 74 | 20 69 73 20 69 6e 20 74 |ion that| is in t|
|00001e10| 68 65 20 62 61 63 6b 67 | 72 6f 75 6e 64 20 63 61 |he backg|round ca|
|00001e20| 6e 20 67 65 74 20 43 50 | 55 20 74 69 6d 65 20 62 |n get CP|U time b|
|00001e30| 75 74 20 63 61 6e d5 74 | 20 69 6e 74 65 72 61 63 |ut can.t| interac|
|00001e40| 74 20 77 69 74 68 20 74 | 68 65 20 75 73 65 72 20 |t with t|he user |
|00001e50| 77 68 69 6c 65 20 69 74 | 20 69 73 20 69 6e 20 74 |while it| is in t|
|00001e60| 68 65 20 62 61 63 6b 67 | 72 6f 75 6e 64 2e 20 28 |he backg|round. (|
|00001e70| 48 6f 77 65 76 65 72 2c | 20 74 68 65 20 75 73 65 |However,| the use|
|00001e80| 72 20 63 61 6e 20 62 72 | 69 6e 67 20 74 68 65 20 |r can br|ing the |
|00001e90| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 74 6f 20 74 |applicat|ion to t|
|00001ea0| 68 65 20 66 6f 72 65 67 | 72 6f 75 6e 64 d1 66 6f |he foreg|round.fo|
|00001eb0| 72 20 65 78 61 6d 70 6c | 65 2c 20 62 79 20 63 6c |r exampl|e, by cl|
|00001ec0| 69 63 6b 69 6e 67 20 69 | 6e 20 6f 6e 65 20 6f 66 |icking i|n one of|
|00001ed0| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|00001ee0| d5 73 20 77 69 6e 64 6f | 77 73 2e 29 20 41 6e 79 |.s windo|ws.) Any|
|00001ef0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 74 68 61 | applica|tion tha|
|00001f00| 74 20 68 61 73 20 74 68 | 65 20 63 61 6e 42 61 63 |t has th|e canBac|
|00001f10| 6b 67 72 6f 75 6e 64 20 | 66 6c 61 67 20 73 65 74 |kground |flag set|
|00001f20| 20 69 6e 20 69 74 73 20 | 27 53 49 5a 45 27 20 72 | in its |'SIZE' r|
|00001f30| 65 73 6f 75 72 63 65 20 | 69 73 20 65 6c 69 67 69 |esource |is eligi|
|00001f40| 62 6c 65 20 74 6f 20 6f | 62 74 61 69 6e 20 61 63 |ble to o|btain ac|
|00001f50| 63 65 73 73 20 74 6f 20 | 74 68 65 20 43 50 55 20 |cess to |the CPU |
|00001f60| 77 68 65 6e 20 69 74 20 | 69 73 20 69 6e 20 74 68 |when it |is in th|
|00001f70| 65 20 62 61 63 6b 67 72 | 6f 75 6e 64 2e 20 0d 41 |e backgr|ound. .A|
|00001f80| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 63 61 6e 20 |pplicati|ons can |
|00001f90| 62 65 20 64 65 73 69 67 | 6e 65 64 20 77 69 74 68 |be desig|ned with|
|00001fa0| 6f 75 74 20 61 20 75 73 | 65 72 20 69 6e 74 65 72 |out a us|er inter|
|00001fb0| 66 61 63 65 2e 20 41 20 | 62 61 63 6b 67 72 6f 75 |face. A |backgrou|
|00001fc0| 6e 64 2d 6f 6e 6c 79 20 | 61 70 70 6c 69 63 61 74 |nd-only |applicat|
|00001fd0| 69 6f 6e 20 69 73 20 61 | 6e 20 61 70 70 6c 69 63 |ion is a|n applic|
|00001fe0| 61 74 69 6f 6e 20 74 68 | 61 74 20 64 6f 65 73 20 |ation th|at does |
|00001ff0| 6e 6f 74 20 68 61 76 65 | 20 61 20 75 73 65 72 20 |not have| a user |
|00002000| 69 6e 74 65 72 66 61 63 | 65 2e 20 41 20 62 61 63 |interfac|e. A bac|
|00002010| 6b 67 72 6f 75 6e 64 2d | 6f 6e 6c 79 20 61 70 70 |kground-|only app|
|00002020| 6c 69 63 61 74 69 6f 6e | 20 64 6f 65 73 20 6e 6f |lication| does no|
|00002030| 74 20 63 61 6c 6c 20 74 | 68 65 20 49 6e 69 74 57 |t call t|he InitW|
|00002040| 69 6e 64 6f 77 73 20 72 | 6f 75 74 69 6e 65 20 61 |indows r|outine a|
|00002050| 6e 64 20 69 73 20 69 64 | 65 6e 74 69 66 69 65 64 |nd is id|entified|
|00002060| 20 62 79 20 68 61 76 69 | 6e 67 20 74 68 65 20 6f | by havi|ng the o|
|00002070| 6e 6c 79 42 61 63 6b 67 | 72 6f 75 6e 64 20 66 6c |nlyBackg|round fl|
|00002080| 61 67 20 73 65 74 20 69 | 6e 20 69 74 73 20 27 53 |ag set i|n its 'S|
|00002090| 49 5a 45 27 20 72 65 73 | 6f 75 72 63 65 2e 20 42 |IZE' res|ource. B|
|000020a0| 61 63 6b 67 72 6f 75 6e | 64 2d 6f 6e 6c 79 20 61 |ackgroun|d-only a|
|000020b0| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 64 6f 20 6e |pplicati|ons do n|
|000020c0| 6f 74 20 64 69 73 70 6c | 61 79 20 77 69 6e 64 6f |ot displ|ay windo|
|000020d0| 77 73 20 6f 72 20 61 20 | 6d 65 6e 75 20 62 61 72 |ws or a |menu bar|
|000020e0| 20 61 6e 64 20 61 72 65 | 20 6e 6f 74 20 6c 69 73 | and are| not lis|
|000020f0| 74 65 64 20 69 6e 20 74 | 68 65 20 41 70 70 6c 69 |ted in t|he Appli|
|00002100| 63 61 74 69 6f 6e 20 6d | 65 6e 75 2e 20 0d 42 61 |cation m|enu. .Ba|
|00002110| 63 6b 67 72 6f 75 6e 64 | 2d 6f 6e 6c 79 20 61 70 |ckground|-only ap|
|00002120| 70 6c 69 63 61 74 69 6f | 6e 73 20 61 6e 64 20 61 |plicatio|ns and a|
|00002130| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 74 68 61 74 |pplicati|ons that|
|00002140| 20 63 61 6e 20 72 75 6e | 20 69 6e 20 74 68 65 20 | can run| in the |
|00002150| 62 61 63 6b 67 72 6f 75 | 6e 64 20 73 68 6f 75 6c |backgrou|nd shoul|
|00002160| 64 20 62 65 20 64 65 73 | 69 67 6e 65 64 20 74 6f |d be des|igned to|
|00002170| 20 72 65 6c 69 6e 71 75 | 69 73 68 20 74 68 65 20 | relinqu|ish the |
|00002180| 43 50 55 20 6f 66 74 65 | 6e 20 65 6e 6f 75 67 68 |CPU ofte|n enough|
|00002190| 20 73 6f 20 74 68 61 74 | 20 74 68 65 20 66 6f 72 | so that| the for|
|000021a0| 65 67 72 6f 75 6e 64 20 | 70 72 6f 63 65 73 73 20 |eground |process |
|000021b0| 63 61 6e 20 70 65 72 66 | 6f 72 6d 20 69 74 73 20 |can perf|orm its |
|000021c0| 77 6f 72 6b 20 61 6e 64 | 20 72 65 73 70 6f 6e 64 |work and| respond|
|000021d0| 20 74 6f 20 74 68 65 20 | 75 73 65 72 2e 0d 4f 6e | to the |user..On|
|000021e0| 63 65 20 61 6e 20 61 70 | 70 6c 69 63 61 74 69 6f |ce an ap|plicatio|
|000021f0| 6e 20 69 73 20 72 75 6e | 6e 69 6e 67 2c 20 69 6e |n is run|ning, in|
|00002200| 20 65 69 74 68 65 72 20 | 74 68 65 20 66 6f 72 65 | either |the fore|
|00002210| 67 72 6f 75 6e 64 20 6f | 72 20 74 68 65 20 62 61 |ground o|r the ba|
|00002220| 63 6b 67 72 6f 75 6e 64 | 2c 20 74 68 65 20 43 50 |ckground|, the CP|
|00002230| 55 20 69 73 20 61 76 61 | 69 6c 61 62 6c 65 20 6f |U is ava|ilable o|
|00002240| 6e 6c 79 20 74 6f 20 74 | 68 61 74 20 61 70 70 6c |nly to t|hat appl|
|00002250| 69 63 61 74 69 6f 6e 2e | 20 54 68 61 74 20 61 70 |ication.| That ap|
|00002260| 70 6c 69 63 61 74 69 6f | 6e 20 63 61 6e 20 62 65 |plicatio|n can be|
|00002270| 20 69 6e 74 65 72 72 75 | 70 74 65 64 20 6f 6e 6c | interru|pted onl|
|00002280| 79 20 62 79 20 68 61 72 | 64 77 61 72 65 20 69 6e |y by har|dware in|
|00002290| 74 65 72 72 75 70 74 73 | 2c 20 77 68 69 63 68 20 |terrupts|, which |
|000022a0| 61 72 65 20 74 72 61 6e | 73 70 61 72 65 6e 74 20 |are tran|sparent |
|000022b0| 74 6f 20 74 68 65 20 73 | 63 68 65 64 75 6c 69 6e |to the s|chedulin|
|000022c0| 67 20 6f 66 20 74 68 65 | 20 61 70 70 6c 69 63 61 |g of the| applica|
|000022d0| 74 69 6f 6e 2e 20 48 6f | 77 65 76 65 72 2c 20 74 |tion. Ho|wever, t|
|000022e0| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 74 |he appli|cation t|
|000022f0| 68 61 74 20 69 73 20 72 | 75 6e 6e 69 6e 67 20 6d |hat is r|unning m|
|00002300| 75 73 74 20 70 65 72 69 | 6f 64 69 63 61 6c 6c 79 |ust peri|odically|
|00002310| 20 72 65 6c 69 6e 71 75 | 69 73 68 20 63 6f 6e 74 | relinqu|ish cont|
|00002320| 72 6f 6c 20 6f 66 20 74 | 68 65 20 43 50 55 2e 20 |rol of t|he CPU. |
|00002330| 54 68 69 73 20 79 69 65 | 6c 64 69 6e 67 20 6f 66 |This yie|lding of|
|00002340| 20 74 68 65 20 43 50 55 | 20 61 6c 6c 6f 77 73 20 | the CPU| allows |
|00002350| 62 61 63 6b 67 72 6f 75 | 6e 64 20 61 70 70 6c 69 |backgrou|nd appli|
|00002360| 63 61 74 69 6f 6e 73 20 | 61 63 63 65 73 73 20 74 |cations |access t|
|00002370| 6f 20 70 72 6f 63 65 73 | 73 69 6e 67 20 74 69 6d |o proces|sing tim|
|00002380| 65 20 61 6e 64 20 6c 65 | 74 73 20 75 73 65 72 73 |e and le|ts users|
|00002390| 20 69 6e 74 65 72 61 63 | 74 20 77 69 74 68 20 74 | interac|t with t|
|000023a0| 68 65 20 66 6f 72 65 67 | 72 6f 75 6e 64 20 61 70 |he foreg|round ap|
|000023b0| 70 6c 69 63 61 74 69 6f | 6e 20 6f 72 20 73 77 69 |plicatio|n or swi|
|000023c0| 74 63 68 20 74 6f 20 61 | 6e 6f 74 68 65 72 20 61 |tch to a|nother a|
|000023d0| 70 70 6c 69 63 61 74 69 | 6f 6e 2e 0d 59 6f 75 20 |pplicati|on..You |
|000023e0| 61 67 72 65 65 20 74 6f | 20 72 65 6c 69 6e 71 75 |agree to| relinqu|
|000023f0| 69 73 68 20 63 6f 6e 74 | 72 6f 6c 20 6f 66 20 74 |ish cont|rol of t|
|00002400| 68 65 20 43 50 55 20 65 | 61 63 68 20 74 69 6d 65 |he CPU e|ach time|
|00002410| 20 79 6f 75 20 63 61 6c | 6c 20 74 68 65 20 57 61 | you cal|l the Wa|
|00002420| 69 74 4e 65 78 74 45 76 | 65 6e 74 20 6f 72 20 45 |itNextEv|ent or E|
|00002430| 76 65 6e 74 41 76 61 69 | 6c 20 66 75 6e 63 74 69 |ventAvai|l functi|
|00002440| 6f 6e 73 2e 20 49 66 2c | 20 61 74 20 74 68 61 74 |ons. If,| at that|
|00002450| 20 74 69 6d 65 2c 20 74 | 68 65 72 65 20 61 72 65 | time, t|here are|
|00002460| 20 6e 6f 20 65 76 65 6e | 74 73 20 70 65 6e 64 69 | no even|ts pendi|
|00002470| 6e 67 20 66 6f 72 20 79 | 6f 75 72 20 61 70 70 6c |ng for y|our appl|
|00002480| 69 63 61 74 69 6f 6e 2c | 20 74 68 65 20 50 72 6f |ication,| the Pro|
|00002490| 63 65 73 73 20 4d 61 6e | 61 67 65 72 20 6d 61 79 |cess Man|ager may|
|000024a0| 20 73 63 68 65 64 75 6c | 65 20 6f 74 68 65 72 20 | schedul|e other |
|000024b0| 70 72 6f 63 65 73 73 65 | 73 20 66 6f 72 20 65 78 |processe|s for ex|
|000024c0| 65 63 75 74 69 6f 6e 2e | 20 28 59 6f 75 20 63 61 |ecution.| (You ca|
|000024d0| 6e 20 61 6c 73 6f 20 63 | 61 6c 6c 20 74 68 65 20 |n also c|all the |
|000024e0| 47 65 74 4e 65 78 74 45 | 76 65 6e 74 20 66 75 6e |GetNextE|vent fun|
|000024f0| 63 74 69 6f 6e 3b 20 68 | 6f 77 65 76 65 72 2c 20 |ction; h|owever, |
|00002500| 79 6f 75 20 73 68 6f 75 | 6c 64 20 75 73 65 20 57 |you shou|ld use W|
|00002510| 61 69 74 4e 65 78 74 45 | 76 65 6e 74 20 74 6f 20 |aitNextE|vent to |
|00002520| 70 72 6f 76 69 64 65 20 | 67 72 65 61 74 65 72 20 |provide |greater |
|00002530| 73 75 70 70 6f 72 74 20 | 66 6f 72 20 6d 75 6c 74 |support |for mult|
|00002540| 69 74 61 73 6b 69 6e 67 | 2e 29 0d 48 6f 77 20 74 |itasking|.).How t|
|00002550| 68 65 20 50 72 6f 63 65 | 73 73 20 4d 61 6e 61 67 |he Proce|ss Manag|
|00002560| 65 72 20 43 72 65 61 74 | 65 73 20 50 72 6f 63 65 |er Creat|es Proce|
|00002570| 73 73 65 73 0d 57 68 65 | 6e 20 61 20 75 73 65 72 |sses.Whe|n a user|
|00002580| 20 66 69 72 73 74 20 6f | 70 65 6e 73 20 79 6f 75 | first o|pens you|
|00002590| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2c 20 74 |r applic|ation, t|
|000025a0| 68 65 20 50 72 6f 63 65 | 73 73 20 4d 61 6e 61 67 |he Proce|ss Manag|
|000025b0| 65 72 20 63 72 65 61 74 | 65 73 20 61 20 70 61 72 |er creat|es a par|
|000025c0| 74 69 74 69 6f 6e 20 66 | 6f 72 20 69 74 2e 20 41 |tition f|or it. A|
|000025d0| 20 70 61 72 74 69 74 69 | 6f 6e 20 69 73 20 61 20 | partiti|on is a |
|000025e0| 63 6f 6e 74 69 67 75 6f | 75 73 20 62 6c 6f 63 6b |contiguo|us block|
|000025f0| 20 6f 66 20 6d 65 6d 6f | 72 79 20 74 68 61 74 20 | of memo|ry that |
|00002600| 74 68 65 20 50 72 6f 63 | 65 73 73 20 4d 61 6e 61 |the Proc|ess Mana|
|00002610| 67 65 72 20 61 6c 6c 6f | 63 61 74 65 73 20 66 6f |ger allo|cates fo|
|00002620| 72 20 79 6f 75 72 20 61 | 70 70 6c 69 63 61 74 69 |r your a|pplicati|
|00002630| 6f 6e d5 73 20 75 73 65 | 2e 20 54 68 65 20 70 61 |on.s use|. The pa|
|00002640| 72 74 69 74 69 6f 6e 20 | 69 73 20 64 69 76 69 64 |rtition |is divid|
|00002650| 65 64 20 69 6e 74 6f 20 | 73 70 65 63 69 66 69 63 |ed into |specific|
|00002660| 20 61 72 65 61 73 3a 20 | 61 70 70 6c 69 63 61 74 | areas: |applicat|
|00002670| 69 6f 6e 20 68 65 61 70 | 2c 20 41 35 20 77 6f 72 |ion heap|, A5 wor|
|00002680| 6c 64 2c 20 61 6e 64 20 | 73 74 61 63 6b 2e 20 54 |ld, and |stack. T|
|00002690| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 68 |he appli|cation h|
|000026a0| 65 61 70 20 63 6f 6e 74 | 61 69 6e 73 20 74 68 65 |eap cont|ains the|
|000026b0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e d5 73 20 27 | applica|tion.s '|
|000026c0| 43 4f 44 45 27 20 73 65 | 67 6d 65 6e 74 20 31 2c |CODE' se|gment 1,|
|000026d0| 20 64 61 74 61 20 73 74 | 72 75 63 74 75 72 65 73 | data st|ructures|
|000026e0| 2c 20 72 65 73 6f 75 72 | 63 65 73 2c 20 61 6e 64 |, resour|ces, and|
|000026f0| 20 6f 74 68 65 72 20 63 | 6f 64 65 20 73 65 67 6d | other c|ode segm|
|00002700| 65 6e 74 73 20 61 73 20 | 6e 65 65 64 65 64 2e 20 |ents as |needed. |
|00002710| 54 68 65 20 41 35 20 77 | 6f 72 6c 64 20 63 6f 6e |The A5 w|orld con|
|00002720| 74 61 69 6e 73 20 74 68 | 65 20 61 70 70 6c 69 63 |tains th|e applic|
|00002730| 61 74 69 6f 6e d5 73 20 | 51 75 69 63 6b 44 72 61 |ation.s |QuickDra|
|00002740| 77 20 67 6c 6f 62 61 6c | 73 2c 20 69 74 73 20 67 |w global|s, its g|
|00002750| 6c 6f 62 61 6c 20 76 61 | 72 69 61 62 6c 65 73 2c |lobal va|riables,|
|00002760| 20 61 6e 64 20 69 74 73 | 20 6a 75 6d 70 20 74 61 | and its| jump ta|
|00002770| 62 6c 65 2c 20 61 6c 6c | 20 6f 66 20 77 68 69 63 |ble, all| of whic|
|00002780| 68 20 61 72 65 20 61 63 | 63 65 73 73 65 64 20 74 |h are ac|cessed t|
|00002790| 68 72 6f 75 67 68 20 74 | 68 65 20 41 35 20 72 65 |hrough t|he A5 re|
|000027a0| 67 69 73 74 65 72 2e 20 | 54 68 65 20 61 70 70 6c |gister. |The appl|
|000027b0| 69 63 61 74 69 6f 6e 20 | 6a 75 6d 70 20 74 61 62 |ication |jump tab|
|000027c0| 6c 65 20 63 6f 6e 74 61 | 69 6e 73 20 6f 6e 65 20 |le conta|ins one |
|000027d0| 65 6e 74 72 79 20 66 6f | 72 20 65 76 65 72 79 20 |entry fo|r every |
|000027e0| 65 78 74 65 72 6e 61 6c | 6c 79 20 72 65 66 65 72 |external|ly refer|
|000027f0| 65 6e 63 65 64 20 72 6f | 75 74 69 6e 65 20 69 6e |enced ro|utine in|
|00002800| 20 65 76 65 72 79 20 63 | 6f 64 65 20 73 65 67 6d | every c|ode segm|
|00002810| 65 6e 74 20 6f 66 20 79 | 6f 75 72 20 61 70 70 6c |ent of y|our appl|
|00002820| 69 63 61 74 69 6f 6e 2e | 20 54 68 65 20 61 70 70 |ication.| The app|
|00002830| 6c 69 63 61 74 69 6f 6e | 20 73 74 61 63 6b 20 69 |lication| stack i|
|00002840| 73 20 75 73 65 64 20 74 | 6f 20 73 74 6f 72 65 20 |s used t|o store |
|00002850| 74 65 6d 70 6f 72 61 72 | 79 20 76 61 72 69 61 62 |temporar|y variab|
|00002860| 6c 65 73 2e 20 28 53 65 | 65 20 74 68 65 20 63 68 |les. (Se|e the ch|
|00002870| 61 70 74 65 72 20 d2 49 | 6e 74 72 6f 64 75 63 74 |apter .I|ntroduct|
|00002880| 69 6f 6e 20 74 6f 20 4d | 65 6d 6f 72 79 20 4d 61 |ion to M|emory Ma|
|00002890| 6e 61 67 65 6d 65 6e 74 | d3 20 69 6e 20 74 68 69 |nagement|. in thi|
|000028a0| 73 20 62 6f 6f 6b 20 66 | 6f 72 20 6d 6f 72 65 20 |s book f|or more |
|000028b0| 63 6f 6d 70 6c 65 74 65 | 20 64 65 74 61 69 6c 73 |complete| details|
|000028c0| 20 6f 6e 20 74 68 65 73 | 65 20 61 72 65 61 73 20 | on thes|e areas |
|000028d0| 6f 66 20 79 6f 75 72 20 | 61 70 70 6c 69 63 61 74 |of your |applicat|
|000028e0| 69 6f 6e d5 73 20 70 61 | 72 74 69 74 69 6f 6e 2e |ion.s pa|rtition.|
|000028f0| 29 0d 57 68 65 6e 20 79 | 6f 75 20 63 72 65 61 74 |).When y|ou creat|
|00002900| 65 20 61 6e 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |e an app|lication|
|00002910| 2c 20 79 6f 75 20 73 70 | 65 63 69 66 79 20 69 6e |, you sp|ecify in|
|00002920| 20 69 74 73 20 27 53 49 | 5a 45 27 20 72 65 73 6f | its 'SI|ZE' reso|
|00002930| 75 72 63 65 20 68 6f 77 | 20 6d 75 63 68 20 6d 65 |urce how| much me|
|00002940| 6d 6f 72 79 20 79 6f 75 | 20 77 61 6e 74 20 74 68 |mory you| want th|
|00002950| 65 20 50 72 6f 63 65 73 | 73 20 4d 61 6e 61 67 65 |e Proces|s Manage|
|00002960| 72 20 74 6f 20 61 6c 6c | 6f 63 61 74 65 20 66 6f |r to all|ocate fo|
|00002970| 72 20 79 6f 75 72 20 61 | 70 70 6c 69 63 61 74 69 |r your a|pplicati|
|00002980| 6f 6e d5 73 20 70 61 72 | 74 69 74 69 6f 6e 2e 20 |on.s par|tition. |
|00002990| 59 6f 75 20 73 70 65 63 | 69 66 79 20 74 77 6f 20 |You spec|ify two |
|000029a0| 76 61 6c 75 65 73 3a 20 | 74 68 65 20 70 72 65 66 |values: |the pref|
|000029b0| 65 72 72 65 64 20 61 6d | 6f 75 6e 74 20 6f 66 20 |erred am|ount of |
|000029c0| 6d 65 6d 6f 72 79 20 74 | 6f 20 61 6c 6c 6f 63 61 |memory t|o alloca|
|000029d0| 74 65 2c 20 61 6e 64 20 | 74 68 65 20 6d 69 6e 69 |te, and |the mini|
|000029e0| 6d 75 6d 20 61 6d 6f 75 | 6e 74 20 6f 66 20 6d 65 |mum amou|nt of me|
|000029f0| 6d 6f 72 79 20 74 6f 20 | 61 6c 6c 6f 63 61 74 65 |mory to |allocate|
|00002a00| 2e 20 57 68 65 6e 20 61 | 20 75 73 65 72 20 6f 70 |. When a| user op|
|00002a10| 65 6e 73 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 |ens your| applica|
|00002a20| 74 69 6f 6e 20 66 72 6f | 6d 20 74 68 65 20 46 69 |tion fro|m the Fi|
|00002a30| 6e 64 65 72 2c 20 74 68 | 65 20 50 72 6f 63 65 73 |nder, th|e Proces|
|00002a40| 73 20 4d 61 6e 61 67 65 | 72 20 66 69 72 73 74 20 |s Manage|r first |
|00002a50| 61 74 74 65 6d 70 74 73 | 20 74 6f 20 61 6c 6c 6f |attempts| to allo|
|00002a60| 63 61 74 65 20 61 20 70 | 61 72 74 69 74 69 6f 6e |cate a p|artition|
|00002a70| 20 6f 66 20 74 68 65 20 | 70 72 65 66 65 72 72 65 | of the |preferre|
|00002a80| 64 20 73 69 7a 65 2e 20 | 49 66 20 79 6f 75 72 20 |d size. |If your |
|00002a90| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 63 61 6e 6e |applicat|ion cann|
|00002aa0| 6f 74 20 62 65 20 6c 61 | 75 6e 63 68 65 64 20 69 |ot be la|unched i|
|00002ab0| 6e 20 74 68 65 20 70 72 | 65 66 65 72 72 65 64 20 |n the pr|eferred |
|00002ac0| 61 6d 6f 75 6e 74 20 6f | 66 20 6d 65 6d 6f 72 79 |amount o|f memory|
|00002ad0| 2c 20 74 68 65 20 46 69 | 6e 64 65 72 20 64 69 73 |, the Fi|nder dis|
|00002ae0| 70 6c 61 79 73 20 61 20 | 64 69 61 6c 6f 67 20 62 |plays a |dialog b|
|00002af0| 6f 78 20 67 69 76 69 6e | 67 20 74 68 65 20 75 73 |ox givin|g the us|
|00002b00| 65 72 20 74 68 65 20 6f | 70 74 69 6f 6e 20 6f 66 |er the o|ption of|
|00002b10| 20 6f 70 65 6e 69 6e 67 | 20 74 68 65 20 61 70 70 | opening| the app|
|00002b20| 6c 69 63 61 74 69 6f 6e | 20 75 73 69 6e 67 20 6c |lication| using l|
|00002b30| 65 73 73 20 74 68 61 6e | 20 74 68 65 20 70 72 65 |ess than| the pre|
|00002b40| 66 65 72 72 65 64 20 73 | 69 7a 65 2e 20 54 68 65 |ferred s|ize. The|
|00002b50| 20 46 69 6e 64 65 72 20 | 77 69 6c 6c 20 6e 6f 74 | Finder |will not|
|00002b60| 20 6c 61 75 6e 63 68 20 | 79 6f 75 72 20 61 70 70 | launch |your app|
|00002b70| 6c 69 63 61 74 69 6f 6e | 20 69 66 20 74 68 65 20 |lication| if the |
|00002b80| 6d 69 6e 69 6d 75 6d 20 | 61 6d 6f 75 6e 74 20 6f |minimum |amount o|
|00002b90| 66 20 6d 65 6d 6f 72 79 | 20 73 70 65 63 69 66 69 |f memory| specifi|
|00002ba0| 65 64 20 66 6f 72 20 79 | 6f 75 72 20 61 70 70 6c |ed for y|our appl|
|00002bb0| 69 63 61 74 69 6f 6e 20 | 69 73 20 6e 6f 74 20 61 |ication |is not a|
|00002bc0| 76 61 69 6c 61 62 6c 65 | 2e 0d 41 66 74 65 72 20 |vailable|..After |
|00002bd0| 74 68 65 20 50 72 6f 63 | 65 73 73 20 4d 61 6e 61 |the Proc|ess Mana|
|00002be0| 67 65 72 20 63 72 65 61 | 74 65 73 20 61 20 70 61 |ger crea|tes a pa|
|00002bf0| 72 74 69 74 69 6f 6e 20 | 66 6f 72 20 79 6f 75 72 |rtition |for your|
|00002c00| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2c 20 74 68 | applica|tion, th|
|00002c10| 65 20 50 72 6f 63 65 73 | 73 20 4d 61 6e 61 67 65 |e Proces|s Manage|
|00002c20| 72 20 6c 6f 61 64 73 20 | 79 6f 75 72 20 63 6f 64 |r loads |your cod|
|00002c30| 65 20 69 6e 74 6f 20 6d | 65 6d 6f 72 79 20 61 6e |e into m|emory an|
|00002c40| 64 20 73 65 74 73 20 75 | 70 20 74 68 65 20 73 74 |d sets u|p the st|
|00002c50| 61 63 6b 2c 20 68 65 61 | 70 2c 20 61 6e 64 20 41 |ack, hea|p, and A|
|00002c60| 35 20 77 6f 72 6c 64 20 | 28 69 6e 63 6c 75 64 69 |5 world |(includi|
|00002c70| 6e 67 20 74 68 65 20 6a | 75 6d 70 20 74 61 62 6c |ng the j|ump tabl|
|00002c80| 65 29 20 66 6f 72 20 79 | 6f 75 72 20 61 70 70 6c |e) for y|our appl|
|00002c90| 69 63 61 74 69 6f 6e 2e | 20 49 66 20 74 68 65 20 |ication.| If the |
|00002ca0| 75 73 65 72 20 73 65 6c | 65 63 74 73 20 6f 6e 65 |user sel|ects one|
|00002cb0| 20 6f 72 20 6d 6f 72 65 | 20 66 69 6c 65 73 20 74 | or more| files t|
|00002cc0| 6f 20 6f 70 65 6e 20 6f | 72 20 70 72 69 6e 74 2c |o open o|r print,|
|00002cd0| 20 74 68 65 20 46 69 6e | 64 65 72 20 73 65 74 73 | the Fin|der sets|
|00002ce0| 20 75 70 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 | up info|rmation |
|00002cf0| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00002d00| 20 63 61 6e 20 75 73 65 | 20 74 6f 20 64 65 74 65 | can use| to dete|
|00002d10| 72 6d 69 6e 65 20 77 68 | 69 63 68 20 66 69 6c 65 |rmine wh|ich file|
|00002d20| 73 20 74 6f 20 6f 70 65 | 6e 20 6f 72 20 70 72 69 |s to ope|n or pri|
|00002d30| 6e 74 2e 20 0d 54 68 65 | 20 50 72 6f 63 65 73 73 |nt. .The| Process|
|00002d40| 20 4d 61 6e 61 67 65 72 | 20 61 73 73 69 67 6e 73 | Manager| assigns|
|00002d50| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|00002d60| 20 61 20 70 72 6f 63 65 | 73 73 20 73 65 72 69 61 | a proce|ss seria|
|00002d70| 6c 20 6e 75 6d 62 65 72 | 2c 20 72 65 63 6f 72 64 |l number|, record|
|00002d80| 73 20 69 74 73 20 63 6f | 6e 74 65 78 74 2c 20 61 |s its co|ntext, a|
|00002d90| 6e 64 20 72 65 74 75 72 | 6e 73 20 63 6f 6e 74 72 |nd retur|ns contr|
|00002da0| 6f 6c 20 74 6f 20 74 68 | 65 20 6c 61 75 6e 63 68 |ol to th|e launch|
|00002db0| 69 6e 67 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |ing appl|ication |
|00002dc0| 28 75 73 75 61 6c 6c 79 | 20 74 68 65 20 46 69 6e |(usually| the Fin|
|00002dd0| 64 65 72 29 2e 20 54 68 | 65 20 50 72 6f 63 65 73 |der). Th|e Proces|
|00002de0| 73 20 4d 61 6e 61 67 65 | 72 20 74 79 70 69 63 61 |s Manage|r typica|
|00002df0| 6c 6c 79 20 74 72 61 6e | 73 66 65 72 73 20 63 6f |lly tran|sfers co|
|00002e00| 6e 74 72 6f 6c 20 74 6f | 20 74 68 65 20 6e 65 77 |ntrol to| the new|
|00002e10| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 61 66 74 | applica|tion aft|
|00002e20| 65 72 20 74 68 65 20 6c | 61 75 6e 63 68 69 6e 67 |er the l|aunching|
|00002e30| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 6d 61 6b | applica|tion mak|
|00002e40| 65 73 20 61 20 73 75 62 | 73 65 71 75 65 6e 74 20 |es a sub|sequent |
|00002e50| 63 61 6c 6c 20 74 6f 20 | 57 61 69 74 4e 65 78 74 |call to |WaitNext|
|00002e60| 45 76 65 6e 74 20 6f 72 | 20 45 76 65 6e 74 41 76 |Event or| EventAv|
|00002e70| 61 69 6c 2e 0d 54 68 65 | 20 6e 65 78 74 20 73 65 |ail..The| next se|
|00002e80| 63 74 69 6f 6e 20 64 65 | 73 63 72 69 62 65 73 20 |ction de|scribes |
|00002e90| 68 6f 77 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 |how your| applica|
|00002ea0| 74 69 6f 6e 20 63 61 6e | 20 61 6c 6c 6f 77 20 6f |tion can| allow o|
|00002eb0| 74 68 65 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |ther app|lication|
|00002ec0| 73 20 74 6f 20 72 65 63 | 65 69 76 65 20 43 50 55 |s to rec|eive CPU|
|00002ed0| 20 74 69 6d 65 20 61 6e | 64 20 68 6f 77 20 74 68 | time an|d how th|
|00002ee0| 65 20 50 72 6f 63 65 73 | 73 20 4d 61 6e 61 67 65 |e Proces|s Manage|
|00002ef0| 72 20 73 63 68 65 64 75 | 6c 65 73 20 43 50 55 20 |r schedu|les CPU |
|00002f00| 74 69 6d 65 20 61 6d 6f | 6e 67 20 70 72 6f 63 65 |time amo|ng proce|
|00002f10| 73 73 65 73 2e 0d 48 6f | 77 20 74 68 65 20 50 72 |sses..Ho|w the Pr|
|00002f20| 6f 63 65 73 73 20 4d 61 | 6e 61 67 65 72 20 53 63 |ocess Ma|nager Sc|
|00002f30| 68 65 64 75 6c 65 73 20 | 50 72 6f 63 65 73 73 65 |hedules |Processe|
|00002f40| 73 0d 59 6f 75 72 20 61 | 70 70 6c 69 63 61 74 69 |s.Your a|pplicati|
|00002f50| 6f 6e 20 63 61 6e 20 79 | 69 65 6c 64 20 63 6f 6e |on can y|ield con|
|00002f60| 74 72 6f 6c 20 6f 66 20 | 74 68 65 20 43 50 55 20 |trol of |the CPU |
|00002f70| 74 6f 20 6f 74 68 65 72 | 20 70 72 6f 63 65 73 73 |to other| process|
|00002f80| 65 73 20 6f 6e 6c 79 20 | 61 74 20 76 65 72 79 20 |es only |at very |
|00002f90| 73 70 65 63 69 66 69 63 | 20 74 69 6d 65 73 2c 20 |specific| times, |
|00002fa0| 6e 61 6d 65 6c 79 20 77 | 68 65 6e 20 79 6f 75 20 |namely w|hen you |
|00002fb0| 63 61 6c 6c 20 74 68 65 | 20 45 76 65 6e 74 20 4d |call the| Event M|
|00002fc0| 61 6e 61 67 65 72 20 66 | 75 6e 63 74 69 6f 6e 73 |anager f|unctions|
|00002fd0| 20 57 61 69 74 4e 65 78 | 74 45 76 65 6e 74 20 6f | WaitNex|tEvent o|
|00002fe0| 72 20 45 76 65 6e 74 41 | 76 61 69 6c 2e 20 57 68 |r EventA|vail. Wh|
|00002ff0| 65 6e 65 76 65 72 20 79 | 6f 75 72 20 61 70 70 6c |enever y|our appl|
|00003000| 69 63 61 74 69 6f 6e 20 | 63 61 6c 6c 73 20 6f 6e |ication |calls on|
|00003010| 65 20 6f 66 20 74 68 65 | 73 65 20 66 75 6e 63 74 |e of the|se funct|
|00003020| 69 6f 6e 73 2c 20 74 68 | 65 20 50 72 6f 63 65 73 |ions, th|e Proces|
|00003030| 73 20 4d 61 6e 61 67 65 | 72 20 63 68 65 63 6b 73 |s Manage|r checks|
|00003040| 20 74 68 65 20 73 74 61 | 74 75 73 20 6f 66 20 79 | the sta|tus of y|
|00003050| 6f 75 72 20 70 72 6f 63 | 65 73 73 20 61 6e 64 20 |our proc|ess and |
|00003060| 74 61 6b 65 73 20 74 68 | 65 20 6f 70 70 6f 72 74 |takes th|e opport|
|00003070| 75 6e 69 74 79 20 74 6f | 20 73 63 68 65 64 75 6c |unity to| schedul|
|00003080| 65 20 6f 74 68 65 72 20 | 70 72 6f 63 65 73 73 65 |e other |processe|
|00003090| 73 2e 0d 59 6f 75 72 20 | 61 70 70 6c 69 63 61 74 |s..Your |applicat|
|000030a0| 69 6f 6e 20 63 61 6e 20 | 61 6c 73 6f 20 79 69 65 |ion can |also yie|
|000030b0| 6c 64 20 70 72 6f 63 65 | 73 73 69 6e 67 20 74 69 |ld proce|ssing ti|
|000030c0| 6d 65 20 74 6f 20 6f 74 | 68 65 72 20 70 72 6f 63 |me to ot|her proc|
|000030d0| 65 73 73 65 73 20 61 73 | 20 61 20 72 65 73 75 6c |esses as| a resul|
|000030e0| 74 20 6f 66 20 63 61 6c | 6c 69 6e 67 20 6f 74 68 |t of cal|ling oth|
|000030f0| 65 72 20 54 6f 6f 6c 62 | 6f 78 20 72 6f 75 74 69 |er Toolb|ox routi|
|00003100| 6e 65 73 20 74 68 61 74 | 20 69 6e 74 65 72 6e 61 |nes that| interna|
|00003110| 6c 6c 79 20 63 61 6c 6c | 20 57 61 69 74 4e 65 78 |lly call| WaitNex|
|00003120| 74 45 76 65 6e 74 20 6f | 72 20 45 76 65 6e 74 41 |tEvent o|r EventA|
|00003130| 76 61 69 6c 2e 20 46 6f | 72 20 65 78 61 6d 70 6c |vail. Fo|r exampl|
|00003140| 65 2c 20 79 6f 75 72 20 | 61 70 70 6c 69 63 61 74 |e, your |applicat|
|00003150| 69 6f 6e 20 63 61 6e 20 | 79 69 65 6c 64 20 74 68 |ion can |yield th|
|00003160| 65 20 43 50 55 20 74 6f | 20 6f 74 68 65 72 20 70 |e CPU to| other p|
|00003170| 72 6f 63 65 73 73 65 73 | 20 61 73 20 61 20 72 65 |rocesses| as a re|
|00003180| 73 75 6c 74 20 6f 66 20 | 63 61 6c 6c 69 6e 67 20 |sult of |calling |
|00003190| 65 69 74 68 65 72 20 6f | 66 20 74 68 65 20 41 70 |either o|f the Ap|
|000031a0| 70 6c 65 20 45 76 65 6e | 74 20 4d 61 6e 61 67 65 |ple Even|t Manage|
|000031b0| 72 20 66 75 6e 63 74 69 | 6f 6e 73 20 41 45 53 65 |r functi|ons AESe|
|000031c0| 6e 64 20 6f 72 20 41 45 | 49 6e 74 65 72 61 63 74 |nd or AE|Interact|
|000031d0| 57 69 74 68 55 73 65 72 | 2e 20 53 65 65 20 74 68 |WithUser|. See th|
|000031e0| 65 20 63 68 61 70 74 65 | 72 20 d2 54 68 65 20 41 |e chapte|r .The A|
|000031f0| 70 70 6c 65 20 45 76 65 | 6e 74 20 4d 61 6e 61 67 |pple Eve|nt Manag|
|00003200| 65 72 d3 20 69 6e 20 49 | 6e 73 69 64 65 20 4d 61 |er. in I|nside Ma|
|00003210| 63 69 6e 74 6f 73 68 3a | 20 43 6f 6c 6c 61 62 6f |cintosh:| Collabo|
|00003220| 72 61 74 69 76 65 20 43 | 6f 6d 70 75 74 69 6e 67 |rative C|omputing|
|00003230| 20 66 6f 72 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e | for inf|ormation|
|00003240| 20 6f 6e 20 75 73 69 6e | 67 20 74 68 65 73 65 20 | on usin|g these |
|00003250| 74 77 6f 20 66 75 6e 63 | 74 69 6f 6e 73 2e 3c 33 |two func|tions.<3|
|00003260| 36 70 74 5c 3e 5c 78 31 | 32 20 3c 38 62 61 74 5c |6pt\>\x1|2 <8bat\|
|00003270| 3e 75 0d 49 6e 20 67 65 | 6e 65 72 61 6c 2c 20 69 |>u.In ge|neral, i|
|00003280| 66 20 61 6e 79 20 65 76 | 65 6e 74 73 20 61 72 65 |f any ev|ents are|
|00003290| 20 70 65 6e 64 69 6e 67 | 20 66 6f 72 20 79 6f 75 | pending| for you|
|000032a0| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2c 20 69 |r applic|ation, i|
|000032b0| 74 20 63 6f 6e 74 69 6e | 75 65 73 20 74 6f 20 72 |t contin|ues to r|
|000032c0| 65 63 65 69 76 65 20 70 | 72 6f 63 65 73 73 69 6e |eceive p|rocessin|
|000032d0| 67 20 74 69 6d 65 2e 20 | 57 68 65 6e 20 79 6f 75 |g time. |When you|
|000032e0| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 69 73 |r applic|ation is|
|000032f0| 20 74 68 65 20 66 6f 72 | 65 67 72 6f 75 6e 64 20 | the for|eground |
|00003300| 70 72 6f 63 65 73 73 2c | 20 69 74 20 79 69 65 6c |process,| it yiel|
|00003310| 64 73 20 74 69 6d 65 20 | 74 6f 20 6f 74 68 65 72 |ds time |to other|
|00003320| 20 70 72 6f 63 65 73 73 | 65 73 20 69 6e 20 74 68 | process|es in th|
|00003330| 65 73 65 20 73 69 74 75 | 61 74 69 6f 6e 73 3a 20 |ese situ|ations: |
|00003340| 77 68 65 6e 20 74 68 65 | 20 75 73 65 72 20 77 61 |when the| user wa|
|00003350| 6e 74 73 20 74 6f 20 73 | 77 69 74 63 68 20 74 6f |nts to s|witch to|
|00003360| 20 61 6e 6f 74 68 65 72 | 20 61 70 70 6c 69 63 61 | another| applica|
|00003370| 74 69 6f 6e 20 6f 72 20 | 77 68 65 6e 20 6e 6f 20 |tion or |when no |
|00003380| 65 76 65 6e 74 73 20 61 | 72 65 20 70 65 6e 64 69 |events a|re pendi|
|00003390| 6e 67 20 66 6f 72 20 79 | 6f 75 72 20 61 70 70 6c |ng for y|our appl|
|000033a0| 69 63 61 74 69 6f 6e 2e | 20 59 6f 75 72 20 61 70 |ication.| Your ap|
|000033b0| 70 6c 69 63 61 74 69 6f | 6e 20 63 61 6e 20 61 6c |plicatio|n can al|
|000033c0| 73 6f 20 63 68 6f 6f 73 | 65 20 74 6f 20 79 69 65 |so choos|e to yie|
|000033d0| 6c 64 20 70 72 6f 63 65 | 73 73 69 6e 67 20 74 69 |ld proce|ssing ti|
|000033e0| 6d 65 20 74 6f 20 6f 74 | 68 65 72 20 70 72 6f 63 |me to ot|her proc|
|000033f0| 65 73 73 65 73 20 77 68 | 65 6e 20 69 74 20 69 73 |esses wh|en it is|
|00003400| 20 70 65 72 66 6f 72 6d | 69 6e 67 20 61 20 6c 65 | perform|ing a le|
|00003410| 6e 67 74 68 79 20 6f 70 | 65 72 61 74 69 6f 6e 2e |ngthy op|eration.|
|00003420| 0d 41 20 6d 61 6a 6f 72 | 20 73 77 69 74 63 68 20 |.A major| switch |
|00003430| 6f 63 63 75 72 73 20 77 | 68 65 6e 20 74 68 65 20 |occurs w|hen the |
|00003440| 50 72 6f 63 65 73 73 20 | 4d 61 6e 61 67 65 72 20 |Process |Manager |
|00003450| 73 77 69 74 63 68 65 73 | 20 74 68 65 20 63 6f 6e |switches| the con|
|00003460| 74 65 78 74 20 6f 66 20 | 74 68 65 20 66 6f 72 65 |text of |the fore|
|00003470| 67 72 6f 75 6e 64 20 70 | 72 6f 63 65 73 73 20 77 |ground p|rocess w|
|00003480| 69 74 68 20 74 68 65 20 | 63 6f 6e 74 65 78 74 20 |ith the |context |
|00003490| 6f 66 20 61 20 62 61 63 | 6b 67 72 6f 75 6e 64 20 |of a bac|kground |
|000034a0| 70 72 6f 63 65 73 73 20 | 28 69 6e 63 6c 75 64 69 |process |(includi|
|000034b0| 6e 67 20 74 68 65 20 41 | 35 20 77 6f 72 6c 64 73 |ng the A|5 worlds|
|000034c0| 20 61 6e 64 20 6c 6f 77 | 2d 6d 65 6d 6f 72 79 20 | and low|-memory |
|000034d0| 67 6c 6f 62 61 6c 20 76 | 61 72 69 61 62 6c 65 73 |global v|ariables|
|000034e0| 29 20 61 6e 64 20 62 72 | 69 6e 67 73 20 74 68 65 |) and br|ings the|
|000034f0| 20 62 61 63 6b 67 72 6f | 75 6e 64 20 70 72 6f 63 | backgro|und proc|
|00003500| 65 73 73 20 74 6f 20 74 | 68 65 20 66 72 6f 6e 74 |ess to t|he front|
|00003510| 2c 20 73 65 6e 64 69 6e | 67 20 74 68 65 20 70 72 |, sendin|g the pr|
|00003520| 65 76 69 6f 75 73 20 66 | 6f 72 65 67 72 6f 75 6e |evious f|oregroun|
|00003530| 64 20 70 72 6f 63 65 73 | 73 20 74 6f 20 74 68 65 |d proces|s to the|
|00003540| 20 62 61 63 6b 67 72 6f | 75 6e 64 2e 0d 57 68 65 | backgro|und..Whe|
|00003550| 6e 20 79 6f 75 72 20 61 | 70 70 6c 69 63 61 74 69 |n your a|pplicati|
|00003560| 6f 6e 20 69 73 20 74 68 | 65 20 66 6f 72 65 67 72 |on is th|e foregr|
|00003570| 6f 75 6e 64 20 70 72 6f | 63 65 73 73 20 61 6e 64 |ound pro|cess and|
|00003580| 20 74 68 65 20 75 73 65 | 72 20 65 6c 65 63 74 73 | the use|r elects|
|00003590| 20 74 6f 20 77 6f 72 6b | 20 77 69 74 68 20 61 6e | to work| with an|
|000035a0| 6f 74 68 65 72 20 61 70 | 70 6c 69 63 61 74 69 6f |other ap|plicatio|
|000035b0| 6e 20 28 62 79 20 63 6c | 69 63 6b 69 6e 67 20 69 |n (by cl|icking i|
|000035c0| 6e 20 61 20 77 69 6e 64 | 6f 77 20 6f 66 20 61 6e |n a wind|ow of an|
|000035d0| 6f 74 68 65 72 20 61 70 | 70 6c 69 63 61 74 69 6f |other ap|plicatio|
|000035e0| 6e 2c 20 66 6f 72 20 65 | 78 61 6d 70 6c 65 29 2c |n, for e|xample),|
|000035f0| 20 74 68 65 20 50 72 6f | 63 65 73 73 20 4d 61 6e | the Pro|cess Man|
|00003600| 61 67 65 72 20 73 65 6e | 64 73 20 79 6f 75 72 20 |ager sen|ds your |
|00003610| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 61 20 73 75 |applicat|ion a su|
|00003620| 73 70 65 6e 64 20 65 76 | 65 6e 74 20 69 66 20 74 |spend ev|ent if t|
|00003630| 68 65 20 61 63 63 65 70 | 74 53 75 73 70 65 6e 64 |he accep|tSuspend|
|00003640| 52 65 73 75 6d 65 45 76 | 65 6e 74 73 20 62 69 74 |ResumeEv|ents bit|
|00003650| 20 69 73 20 73 65 74 20 | 69 6e 20 79 6f 75 72 20 | is set |in your |
|00003660| 61 70 70 6c 69 63 61 74 | 69 6f 6e d5 73 20 27 53 |applicat|ion.s 'S|
|00003670| 49 5a 45 27 20 72 65 73 | 6f 75 72 63 65 2e 20 57 |IZE' res|ource. W|
|00003680| 68 65 6e 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 |hen your| applica|
|00003690| 74 69 6f 6e 20 72 65 63 | 65 69 76 65 73 20 61 20 |tion rec|eives a |
|000036a0| 73 75 73 70 65 6e 64 20 | 65 76 65 6e 74 2c 20 69 |suspend |event, i|
|000036b0| 74 20 73 68 6f 75 6c 64 | 20 70 72 65 70 61 72 65 |t should| prepare|
|000036c0| 20 74 6f 20 73 75 73 70 | 65 6e 64 20 66 6f 72 65 | to susp|end fore|
|000036d0| 67 72 6f 75 6e 64 20 70 | 72 6f 63 65 73 73 69 6e |ground p|rocessin|
|000036e0| 67 2c 20 61 6c 6c 6f 77 | 69 6e 67 20 74 68 65 20 |g, allow|ing the |
|000036f0| 75 73 65 72 20 74 6f 20 | 73 77 69 74 63 68 20 74 |user to |switch t|
|00003700| 6f 20 74 68 65 20 6f 74 | 68 65 72 20 61 70 70 6c |o the ot|her appl|
|00003710| 69 63 61 74 69 6f 6e 2e | 20 46 6f 72 20 65 78 61 |ication.| For exa|
|00003720| 6d 70 6c 65 2c 20 69 6e | 20 72 65 73 70 6f 6e 73 |mple, in| respons|
|00003730| 65 20 74 6f 20 74 68 65 | 20 73 75 73 70 65 6e 64 |e to the| suspend|
|00003740| 20 65 76 65 6e 74 2c 20 | 79 6f 75 72 20 61 70 70 | event, |your app|
|00003750| 6c 69 63 61 74 69 6f 6e | 20 73 68 6f 75 6c 64 20 |lication| should |
|00003760| 72 65 6d 6f 76 65 20 74 | 68 65 20 68 69 67 68 6c |remove t|he highl|
|00003770| 69 67 68 74 69 6e 67 20 | 66 72 6f 6d 20 74 68 65 |ighting |from the|
|00003780| 20 63 6f 6e 74 72 6f 6c | 73 20 6f 66 20 69 74 73 | control|s of its|
|00003790| 20 66 72 6f 6e 74 6d 6f | 73 74 20 77 69 6e 64 6f | frontmo|st windo|
|000037a0| 77 20 61 6e 64 20 74 61 | 6b 65 20 61 6e 79 20 6f |w and ta|ke any o|
|000037b0| 74 68 65 72 20 6e 65 63 | 65 73 73 61 72 79 20 61 |ther nec|essary a|
|000037c0| 63 74 69 6f 6e 73 2e 20 | 59 6f 75 72 20 61 70 70 |ctions. |Your app|
|000037d0| 6c 69 63 61 74 69 6f 6e | 20 69 73 20 61 63 74 75 |lication| is actu|
|000037e0| 61 6c 6c 79 20 73 75 73 | 70 65 6e 64 65 64 20 74 |ally sus|pended t|
|000037f0| 68 65 20 6e 65 78 74 20 | 74 69 6d 65 20 79 6f 75 |he next |time you|
|00003800| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 63 61 |r applic|ation ca|
|00003810| 6c 6c 73 20 57 61 69 74 | 4e 65 78 74 45 76 65 6e |lls Wait|NextEven|
|00003820| 74 20 6f 72 20 45 76 65 | 6e 74 41 76 61 69 6c 2e |t or Eve|ntAvail.|
|00003830| 0d 41 66 74 65 72 20 79 | 6f 75 72 20 61 70 70 6c |.After y|our appl|
|00003840| 69 63 61 74 69 6f 6e 20 | 72 65 63 65 69 76 65 73 |ication |receives|
|00003850| 20 74 68 65 20 73 75 73 | 70 65 6e 64 20 65 76 65 | the sus|pend eve|
|00003860| 6e 74 20 61 6e 64 20 63 | 61 6c 6c 73 20 57 61 69 |nt and c|alls Wai|
|00003870| 74 4e 65 78 74 45 76 65 | 6e 74 20 6f 72 20 45 76 |tNextEve|nt or Ev|
|00003880| 65 6e 74 41 76 61 69 6c | 2c 20 74 68 65 20 50 72 |entAvail|, the Pr|
|00003890| 6f 63 65 73 73 20 4d 61 | 6e 61 67 65 72 20 73 61 |ocess Ma|nager sa|
|000038a0| 76 65 73 20 74 68 65 20 | 63 6f 6e 74 65 78 74 20 |ves the |context |
|000038b0| 6f 66 20 79 6f 75 72 20 | 70 72 6f 63 65 73 73 2c |of your |process,|
|000038c0| 20 72 65 73 74 6f 72 65 | 73 20 74 68 65 20 63 6f | restore|s the co|
|000038d0| 6e 74 65 78 74 20 6f 66 | 20 74 68 65 20 70 72 6f |ntext of| the pro|
|000038e0| 63 65 73 73 20 74 6f 20 | 77 68 69 63 68 20 74 68 |cess to |which th|
|000038f0| 65 20 75 73 65 72 20 69 | 73 20 73 77 69 74 63 68 |e user i|s switch|
|00003900| 69 6e 67 2c 20 61 6e 64 | 20 73 65 6e 64 73 20 61 |ing, and| sends a|
|00003910| 20 72 65 73 75 6d 65 20 | 65 76 65 6e 74 20 74 6f | resume |event to|
|00003920| 20 74 68 61 74 20 70 72 | 6f 63 65 73 73 20 28 69 | that pr|ocess (i|
|00003930| 66 20 74 68 65 20 61 63 | 63 65 70 74 53 75 73 70 |f the ac|ceptSusp|
|00003940| 65 6e 64 52 65 73 75 6d | 65 45 76 65 6e 74 73 20 |endResum|eEvents |
|00003950| 62 69 74 20 69 73 20 73 | 65 74 20 69 6e 20 69 74 |bit is s|et in it|
|00003960| 73 20 27 53 49 5a 45 27 | 20 72 65 73 6f 75 72 63 |s 'SIZE'| resourc|
|00003970| 65 29 2e 0d 49 6e 20 72 | 65 73 70 6f 6e 73 65 20 |e)..In r|esponse |
|00003980| 74 6f 20 61 20 72 65 73 | 75 6d 65 20 65 76 65 6e |to a res|ume even|
|00003990| 74 2c 20 79 6f 75 72 20 | 61 70 70 6c 69 63 61 74 |t, your |applicat|
|000039a0| 69 6f 6e 20 73 68 6f 75 | 6c 64 20 72 65 73 75 6d |ion shou|ld resum|
|000039b0| 65 20 70 72 6f 63 65 73 | 73 69 6e 67 20 61 6e 64 |e proces|sing and|
|000039c0| 20 73 74 61 72 74 20 69 | 6e 74 65 72 61 63 74 69 | start i|nteracti|
|000039d0| 6e 67 20 77 69 74 68 20 | 74 68 65 20 75 73 65 72 |ng with |the user|
|000039e0| 2e 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 79 |. For ex|ample, y|
|000039f0| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |our appl|ication |
|00003a00| 73 68 6f 75 6c 64 20 68 | 69 67 68 6c 69 67 68 74 |should h|ighlight|
|00003a10| 20 74 68 65 20 63 6f 6e | 74 72 6f 6c 73 20 6f 66 | the con|trols of|
|00003a20| 20 69 74 73 20 66 72 6f | 6e 74 6d 6f 73 74 20 77 | its fro|ntmost w|
|00003a30| 69 6e 64 6f 77 2e 0d 41 | 20 6d 61 6a 6f 72 20 73 |indow..A| major s|
|00003a40| 77 69 74 63 68 20 61 6c | 73 6f 20 6f 63 63 75 72 |witch al|so occur|
|00003a50| 73 20 77 68 65 6e 20 74 | 68 65 20 75 73 65 72 20 |s when t|he user |
|00003a60| 68 69 64 65 73 20 74 68 | 65 20 61 63 74 69 76 65 |hides th|e active|
|00003a70| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 28 62 79 | applica|tion (by|
|00003a80| 20 75 73 69 6e 67 20 74 | 68 65 20 48 69 64 65 20 | using t|he Hide |
|00003a90| 63 6f 6d 6d 61 6e 64 20 | 69 6e 20 74 68 65 20 41 |command |in the A|
|00003aa0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 6d 65 6e 75 29 |pplicati|on menu)|
|00003ab0| 2e 20 49 6e 20 67 65 6e | 65 72 61 6c 2c 20 61 20 |. In gen|eral, a |
|00003ac0| 6d 61 6a 6f 72 20 73 77 | 69 74 63 68 20 63 61 6e |major sw|itch can|
|00003ad0| 6e 6f 74 20 6f 63 63 75 | 72 20 77 68 65 6e 20 61 |not occu|r when a|
|00003ae0| 20 6d 6f 64 61 6c 20 64 | 69 61 6c 6f 67 20 62 6f | modal d|ialog bo|
|00003af0| 78 20 69 73 20 74 68 65 | 20 66 72 6f 6e 74 6d 6f |x is the| frontmo|
|00003b00| 73 74 20 77 69 6e 64 6f | 77 2e 20 48 6f 77 65 76 |st windo|w. Howev|
|00003b10| 65 72 2c 20 61 20 6d 61 | 6a 6f 72 20 73 77 69 74 |er, a ma|jor swit|
|00003b20| 63 68 20 63 61 6e 20 6f | 63 63 75 72 20 77 68 65 |ch can o|ccur whe|
|00003b30| 6e 20 61 20 6d 6f 76 61 | 62 6c 65 20 6d 6f 64 61 |n a mova|ble moda|
|00003b40| 6c 20 64 69 61 6c 6f 67 | 20 62 6f 78 20 69 73 20 |l dialog| box is |
|00003b50| 74 68 65 20 66 72 6f 6e | 74 6d 6f 73 74 20 77 69 |the fron|tmost wi|
|00003b60| 6e 64 6f 77 2e 0d 41 20 | 6d 69 6e 6f 72 20 73 77 |ndow..A |minor sw|
|00003b70| 69 74 63 68 20 6f 63 63 | 75 72 73 20 77 68 65 6e |itch occ|urs when|
|00003b80| 20 74 68 65 20 50 72 6f | 63 65 73 73 20 4d 61 6e | the Pro|cess Man|
|00003b90| 61 67 65 72 20 73 77 69 | 74 63 68 65 73 20 74 68 |ager swi|tches th|
|00003ba0| 65 20 63 6f 6e 74 65 78 | 74 20 6f 66 20 61 20 70 |e contex|t of a p|
|00003bb0| 72 6f 63 65 73 73 20 74 | 6f 20 67 69 76 65 20 74 |rocess t|o give t|
|00003bc0| 69 6d 65 20 74 6f 20 61 | 20 62 61 63 6b 67 72 6f |ime to a| backgro|
|00003bd0| 75 6e 64 20 70 72 6f 63 | 65 73 73 20 77 69 74 68 |und proc|ess with|
|00003be0| 6f 75 74 20 62 72 69 6e | 67 69 6e 67 20 74 68 65 |out brin|ging the|
|00003bf0| 20 62 61 63 6b 67 72 6f | 75 6e 64 20 70 72 6f 63 | backgro|und proc|
|00003c00| 65 73 73 20 74 6f 20 74 | 68 65 20 66 72 6f 6e 74 |ess to t|he front|
|00003c10| 2e 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 61 |. For ex|ample, a|
|00003c20| 20 6d 69 6e 6f 72 20 73 | 77 69 74 63 68 20 6f 63 | minor s|witch oc|
|00003c30| 63 75 72 73 20 77 68 65 | 6e 20 6e 6f 20 65 76 65 |curs whe|n no eve|
|00003c40| 6e 74 73 20 61 72 65 20 | 70 65 6e 64 69 6e 67 20 |nts are |pending |
|00003c50| 69 6e 20 74 68 65 20 65 | 76 65 6e 74 20 71 75 65 |in the e|vent que|
|00003c60| 75 65 20 6f 66 20 74 68 | 65 20 66 6f 72 65 67 72 |ue of th|e foregr|
|00003c70| 6f 75 6e 64 20 70 72 6f | 63 65 73 73 2e 20 49 6e |ound pro|cess. In|
|00003c80| 20 74 68 69 73 20 73 69 | 74 75 61 74 69 6f 6e 2c | this si|tuation,|
|00003c90| 20 70 72 6f 63 65 73 73 | 65 73 20 72 75 6e 6e 69 | process|es runni|
|00003ca0| 6e 67 20 69 6e 20 74 68 | 65 20 62 61 63 6b 67 72 |ng in th|e backgr|
|00003cb0| 6f 75 6e 64 20 68 61 76 | 65 20 61 6e 20 6f 70 70 |ound hav|e an opp|
|00003cc0| 6f 72 74 75 6e 69 74 79 | 20 74 6f 20 65 78 65 63 |ortunity| to exec|
|00003cd0| 75 74 65 20 77 68 65 6e | 20 74 68 65 20 66 6f 72 |ute when| the for|
|00003ce0| 65 67 72 6f 75 6e 64 20 | 70 72 6f 63 65 73 73 20 |eground |process |
|00003cf0| 63 61 6c 6c 73 20 57 61 | 69 74 4e 65 78 74 45 76 |calls Wa|itNextEv|
|00003d00| 65 6e 74 20 6f 72 20 45 | 76 65 6e 74 41 76 61 69 |ent or E|ventAvai|
|00003d10| 6c 2e 20 28 49 66 20 74 | 68 65 20 66 6f 72 65 67 |l. (If t|he foreg|
|00003d20| 72 6f 75 6e 64 20 70 72 | 6f 63 65 73 73 20 68 61 |round pr|ocess ha|
|00003d30| 73 20 6f 6e 65 20 6f 72 | 20 6d 6f 72 65 20 65 76 |s one or| more ev|
|00003d40| 65 6e 74 73 20 70 65 6e | 64 69 6e 67 20 69 6e 20 |ents pen|ding in |
|00003d50| 74 68 65 20 65 76 65 6e | 74 20 71 75 65 75 65 2c |the even|t queue,|
|00003d60| 20 74 68 65 6e 20 74 68 | 65 20 6e 65 78 74 20 65 | then th|e next e|
|00003d70| 76 65 6e 74 20 69 73 20 | 72 65 74 75 72 6e 65 64 |vent is |returned|
|00003d80| 20 61 6e 64 20 74 68 65 | 20 66 6f 72 65 67 72 6f | and the| foregro|
|00003d90| 75 6e 64 20 70 72 6f 63 | 65 73 73 20 61 67 61 69 |und proc|ess agai|
|00003da0| 6e 20 68 61 73 20 73 6f | 6c 65 20 61 63 63 65 73 |n has so|le acces|
|00003db0| 73 20 74 6f 20 74 68 65 | 20 43 50 55 2e 29 0d 57 |s to the| CPU.).W|
|00003dc0| 68 65 6e 20 61 6e 20 61 | 70 70 6c 69 63 61 74 69 |hen an a|pplicati|
|00003dd0| 6f 6e 20 69 73 20 73 77 | 69 74 63 68 65 64 20 6f |on is sw|itched o|
|00003de0| 75 74 20 69 6e 20 74 68 | 69 73 20 77 61 79 2c 20 |ut in th|is way, |
|00003df0| 74 68 65 20 50 72 6f 63 | 65 73 73 20 4d 61 6e 61 |the Proc|ess Mana|
|00003e00| 67 65 72 20 73 61 76 65 | 73 20 74 68 65 20 63 6f |ger save|s the co|
|00003e10| 6e 74 65 78 74 20 6f 66 | 20 74 68 65 20 63 75 72 |ntext of| the cur|
|00003e20| 72 65 6e 74 20 70 72 6f | 63 65 73 73 2c 20 72 65 |rent pro|cess, re|
|00003e30| 73 74 6f 72 65 73 20 74 | 68 65 20 63 6f 6e 74 65 |stores t|he conte|
|00003e40| 78 74 20 6f 66 20 74 68 | 65 20 6e 65 78 74 20 62 |xt of th|e next b|
|00003e50| 61 63 6b 67 72 6f 75 6e | 64 20 70 72 6f 63 65 73 |ackgroun|d proces|
|00003e60| 73 20 73 63 68 65 64 75 | 6c 65 64 20 74 6f 20 72 |s schedu|led to r|
|00003e70| 75 6e 2c 20 61 6e 64 20 | 73 65 6e 64 73 20 74 68 |un, and |sends th|
|00003e80| 65 20 62 61 63 6b 67 72 | 6f 75 6e 64 20 70 72 6f |e backgr|ound pro|
|00003e90| 63 65 73 73 20 61 6e 20 | 65 76 65 6e 74 2e 20 41 |cess an |event. A|
|00003ea0| 74 20 74 68 69 73 20 74 | 69 6d 65 2c 20 74 68 65 |t this t|ime, the|
|00003eb0| 20 62 61 63 6b 67 72 6f | 75 6e 64 20 70 72 6f 63 | backgro|und proc|
|00003ec0| 65 73 73 20 63 61 6e 20 | 72 65 63 65 69 76 65 20 |ess can |receive |
|00003ed0| 65 69 74 68 65 72 20 75 | 70 64 61 74 65 2c 20 6e |either u|pdate, n|
|00003ee0| 75 6c 6c 2c 20 6f 72 20 | 68 69 67 68 2d 6c 65 76 |ull, or |high-lev|
|00003ef0| 65 6c 20 65 76 65 6e 74 | 73 2e 0d 41 20 62 61 63 |el event|s..A bac|
|00003f00| 6b 67 72 6f 75 6e 64 20 | 70 72 6f 63 65 73 73 20 |kground |process |
|00003f10| 73 68 6f 75 6c 64 20 6e | 6f 74 20 70 65 72 66 6f |should n|ot perfo|
|00003f20| 72 6d 20 61 6e 79 20 74 | 61 73 6b 20 74 68 61 74 |rm any t|ask that|
|00003f30| 20 73 69 67 6e 69 66 69 | 63 61 6e 74 6c 79 20 6c | signifi|cantly l|
|00003f40| 69 6d 69 74 73 20 74 68 | 65 20 61 62 69 6c 69 74 |imits th|e abilit|
|00003f50| 79 20 6f 66 20 74 68 65 | 20 66 6f 72 65 67 72 6f |y of the| foregro|
|00003f60| 75 6e 64 20 70 72 6f 63 | 65 73 73 20 74 6f 20 72 |und proc|ess to r|
|00003f70| 65 73 70 6f 6e 64 20 71 | 75 69 63 6b 6c 79 20 74 |espond q|uickly t|
|00003f80| 6f 20 74 68 65 20 75 73 | 65 72 2e 20 41 20 62 61 |o the us|er. A ba|
|00003f90| 63 6b 67 72 6f 75 6e 64 | 20 70 72 6f 63 65 73 73 |ckground| process|
|00003fa0| 20 73 68 6f 75 6c 64 20 | 63 61 6c 6c 20 57 61 69 | should |call Wai|
|00003fb0| 74 4e 65 78 74 45 76 65 | 6e 74 20 6f 66 74 65 6e |tNextEve|nt often|
|00003fc0| 20 65 6e 6f 75 67 68 20 | 74 6f 20 6c 65 74 20 74 | enough |to let t|
|00003fd0| 68 65 20 66 6f 72 65 67 | 72 6f 75 6e 64 20 70 72 |he foreg|round pr|
|00003fe0| 6f 63 65 73 73 20 62 65 | 20 72 65 73 70 6f 6e 73 |ocess be| respons|
|00003ff0| 69 76 65 20 74 6f 20 74 | 68 65 20 75 73 65 72 2e |ive to t|he user.|
|00004000| 20 55 70 6f 6e 20 72 65 | 63 65 69 76 69 6e 67 20 | Upon re|ceiving |
|00004010| 61 6e 20 75 70 64 61 74 | 65 20 65 76 65 6e 74 2c |an updat|e event,|
|00004020| 20 74 68 65 20 62 61 63 | 6b 67 72 6f 75 6e 64 20 | the bac|kground |
|00004030| 70 72 6f 63 65 73 73 20 | 73 68 6f 75 6c 64 20 75 |process |should u|
|00004040| 70 64 61 74 65 20 6f 6e | 6c 79 20 74 68 65 20 63 |pdate on|ly the c|
|00004050| 6f 6e 74 65 6e 74 20 6f | 66 20 69 74 73 20 77 69 |ontent o|f its wi|
|00004060| 6e 64 6f 77 73 2e 20 55 | 70 6f 6e 20 72 65 63 65 |ndows. U|pon rece|
|00004070| 69 76 69 6e 67 20 61 20 | 6e 75 6c 6c 20 65 76 65 |iving a |null eve|
|00004080| 6e 74 2c 20 74 68 65 20 | 62 61 63 6b 67 72 6f 75 |nt, the |backgrou|
|00004090| 6e 64 20 70 72 6f 63 65 | 73 73 20 63 61 6e 20 75 |nd proce|ss can u|
|000040a0| 73 65 20 74 68 65 20 43 | 50 55 20 74 6f 20 70 65 |se the C|PU to pe|
|000040b0| 72 66 6f 72 6d 20 74 61 | 73 6b 73 20 74 68 61 74 |rform ta|sks that|
|000040c0| 20 64 6f 20 6e 6f 74 20 | 72 65 71 75 69 72 65 20 | do not |require |
|000040d0| 73 69 67 6e 69 66 69 63 | 61 6e 74 20 61 6d 6f 75 |signific|ant amou|
|000040e0| 6e 74 73 20 6f 66 20 70 | 72 6f 63 65 73 73 69 6e |nts of p|rocessin|
|000040f0| 67 20 74 69 6d 65 2e 0d | 54 68 65 20 6e 65 78 74 |g time..|The next|
|00004100| 20 74 69 6d 65 20 74 68 | 65 20 62 61 63 6b 67 72 | time th|e backgr|
|00004110| 6f 75 6e 64 20 70 72 6f | 63 65 73 73 20 63 61 6c |ound pro|cess cal|
|00004120| 6c 73 20 57 61 69 74 4e | 65 78 74 45 76 65 6e 74 |ls WaitN|extEvent|
|00004130| 20 6f 72 20 45 76 65 6e | 74 41 76 61 69 6c 2c 20 | or Even|tAvail, |
|00004140| 74 68 65 20 50 72 6f 63 | 65 73 73 20 4d 61 6e 61 |the Proc|ess Mana|
|00004150| 67 65 72 20 73 61 76 65 | 73 20 74 68 65 20 63 6f |ger save|s the co|
|00004160| 6e 74 65 78 74 20 6f 66 | 20 74 68 65 20 62 61 63 |ntext of| the bac|
|00004170| 6b 67 72 6f 75 6e 64 20 | 70 72 6f 63 65 73 73 20 |kground |process |
|00004180| 61 6e 64 20 72 65 73 74 | 6f 72 65 73 20 74 68 65 |and rest|ores the|
|00004190| 20 63 6f 6e 74 65 78 74 | 20 6f 66 20 74 68 65 20 | context| of the |
|000041a0| 66 6f 72 65 67 72 6f 75 | 6e 64 20 70 72 6f 63 65 |foregrou|nd proce|
|000041b0| 73 73 20 28 69 66 20 74 | 68 65 20 66 6f 72 65 67 |ss (if t|he foreg|
|000041c0| 72 6f 75 6e 64 20 70 72 | 6f 63 65 73 73 20 69 73 |round pr|ocess is|
|000041d0| 20 6e 6f 74 20 77 61 69 | 74 69 6e 67 20 66 6f 72 | not wai|ting for|
|000041e0| 20 61 20 73 70 65 63 69 | 66 69 65 64 20 61 6d 6f | a speci|fied amo|
|000041f0| 75 6e 74 20 6f 66 20 74 | 69 6d 65 20 74 6f 20 65 |unt of t|ime to e|
|00004200| 78 70 69 72 65 20 62 65 | 66 6f 72 65 20 62 65 69 |xpire be|fore bei|
|00004210| 6e 67 20 73 63 68 65 64 | 75 6c 65 64 20 61 67 61 |ng sched|uled aga|
|00004220| 69 6e 29 2e 20 54 68 65 | 20 66 6f 72 65 67 72 6f |in). The| foregro|
|00004230| 75 6e 64 20 70 72 6f 63 | 65 73 73 20 69 73 20 74 |und proc|ess is t|
|00004240| 68 65 6e 20 73 63 68 65 | 64 75 6c 65 64 20 74 6f |hen sche|duled to|
|00004250| 20 65 78 65 63 75 74 65 | 2e 20 49 66 20 6e 6f 20 | execute|. If no |
|00004260| 65 76 65 6e 74 73 20 61 | 72 65 20 70 65 6e 64 69 |events a|re pendi|
|00004270| 6e 67 20 66 6f 72 20 74 | 68 65 20 66 6f 72 65 67 |ng for t|he foreg|
|00004280| 72 6f 75 6e 64 20 70 72 | 6f 63 65 73 73 20 61 6e |round pr|ocess an|
|00004290| 64 20 69 74 20 69 73 20 | 77 61 69 74 69 6e 67 20 |d it is |waiting |
|000042a0| 66 6f 72 20 61 20 73 70 | 65 63 69 66 69 65 64 20 |for a sp|ecified |
|000042b0| 61 6d 6f 75 6e 74 20 6f | 66 20 74 69 6d 65 20 74 |amount o|f time t|
|000042c0| 6f 20 65 78 70 69 72 65 | 2c 20 74 68 65 20 50 72 |o expire|, the Pr|
|000042d0| 6f 63 65 73 73 20 4d 61 | 6e 61 67 65 72 20 73 63 |ocess Ma|nager sc|
|000042e0| 68 65 64 75 6c 65 73 20 | 74 68 65 20 6e 65 78 74 |hedules |the next|
|000042f0| 20 62 61 63 6b 67 72 6f | 75 6e 64 20 70 72 6f 63 | backgro|und proc|
|00004300| 65 73 73 20 74 6f 20 72 | 75 6e 2e 20 54 68 65 20 |ess to r|un. The |
|00004310| 50 72 6f 63 65 73 73 20 | 4d 61 6e 61 67 65 72 20 |Process |Manager |
|00004320| 63 6f 6e 74 69 6e 75 65 | 73 20 74 6f 20 6d 61 6e |continue|s to man|
|00004330| 61 67 65 20 74 68 65 20 | 73 63 68 65 64 75 6c 69 |age the |scheduli|
|00004340| 6e 67 20 6f 66 20 70 72 | 6f 63 65 73 73 65 73 20 |ng of pr|ocesses |
|00004350| 69 6e 20 74 68 69 73 20 | 6d 61 6e 6e 65 72 2e 0d |in this |manner..|
|00004360| 44 72 69 76 65 72 73 20 | 61 6e 64 20 76 65 72 74 |Drivers |and vert|
|00004370| 69 63 61 6c 20 62 6c 61 | 6e 6b 69 6e 67 20 28 56 |ical bla|nking (V|
|00004380| 42 4c 29 20 74 61 73 6b | 73 20 69 6e 73 74 61 6c |BL) task|s instal|
|00004390| 6c 65 64 20 69 6e 20 74 | 68 65 20 73 79 73 74 65 |led in t|he syste|
|000043a0| 6d 20 68 65 61 70 20 61 | 72 65 20 73 63 68 65 64 |m heap a|re sched|
|000043b0| 75 6c 65 64 20 72 65 67 | 61 72 64 6c 65 73 73 20 |uled reg|ardless |
|000043c0| 6f 66 20 77 68 69 63 68 | 20 61 70 70 6c 69 63 61 |of which| applica|
|000043d0| 74 69 6f 6e 20 69 73 20 | 63 75 72 72 65 6e 74 6c |tion is |currentl|
|000043e0| 79 20 65 78 65 63 75 74 | 69 6e 67 2e 20 44 72 69 |y execut|ing. Dri|
|000043f0| 76 65 72 73 20 69 6e 73 | 74 61 6c 6c 65 64 20 69 |vers ins|talled i|
|00004400| 6e 20 61 6e 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |n an app|lication|
|00004410| d5 73 20 68 65 61 70 20 | 61 72 65 20 6e 6f 74 20 |.s heap |are not |
|00004420| 73 63 68 65 64 75 6c 65 | 64 20 74 6f 20 72 75 6e |schedule|d to run|
|00004430| 20 77 68 65 6e 20 74 68 | 65 20 61 70 70 6c 69 63 | when th|e applic|
|00004440| 61 74 69 6f 6e 20 69 73 | 20 6e 6f 74 20 65 78 65 |ation is| not exe|
|00004450| 63 75 74 69 6e 67 2e 20 | 0d 53 65 65 20 74 68 65 |cuting. |.See the|
|00004460| 20 63 68 61 70 74 65 72 | 20 d2 54 68 65 20 45 76 | chapter| .The Ev|
|00004470| 65 6e 74 20 4d 61 6e 61 | 67 65 72 d3 20 69 6e 20 |ent Mana|ger. in |
|00004480| 49 6e 73 69 64 65 20 4d | 61 63 69 6e 74 6f 73 68 |Inside M|acintosh|
|00004490| 3a 20 54 68 65 20 54 6f | 6f 6c 62 6f 78 20 66 6f |: The To|olbox fo|
|000044a0| 72 20 73 70 65 63 69 66 | 69 63 20 69 6e 66 6f 72 |r specif|ic infor|
|000044b0| 6d 61 74 69 6f 6e 20 6f | 6e 20 68 6f 77 20 79 6f |mation o|n how yo|
|000044c0| 75 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 63 |ur appli|cation c|
|000044d0| 61 6e 20 68 61 6e 64 6c | 65 20 73 75 73 70 65 6e |an handl|e suspen|
|000044e0| 64 20 61 6e 64 20 72 65 | 73 75 6d 65 20 65 76 65 |d and re|sume eve|
|000044f0| 6e 74 73 20 61 6e 64 20 | 68 6f 77 20 79 6f 75 72 |nts and |how your|
|00004500| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 63 61 6e | applica|tion can|
|00004510| 20 74 61 6b 65 20 61 64 | 76 61 6e 74 61 67 65 20 | take ad|vantage |
|00004520| 6f 66 20 74 68 65 20 63 | 6f 6f 70 65 72 61 74 69 |of the c|ooperati|
|00004530| 76 65 20 6d 75 6c 74 69 | 74 61 73 6b 69 6e 67 20 |ve multi|tasking |
|00004540| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 2e 0d 48 6f 77 |environm|ent..How|
|00004550| 20 59 6f 75 72 20 41 70 | 70 6c 69 63 61 74 69 6f | Your Ap|plicatio|
|00004560| 6e 20 53 70 65 63 69 66 | 69 65 73 20 53 63 68 65 |n Specif|ies Sche|
|00004570| 64 75 6c 69 6e 67 20 4f | 70 74 69 6f 6e 73 0d 57 |duling O|ptions.W|
|00004580| 68 65 6e 65 76 65 72 20 | 79 6f 75 72 20 61 70 70 |henever |your app|
|00004590| 6c 69 63 61 74 69 6f 6e | 20 63 61 6c 6c 73 20 57 |lication| calls W|
|000045a0| 61 69 74 4e 65 78 74 45 | 76 65 6e 74 20 6f 72 20 |aitNextE|vent or |
|000045b0| 45 76 65 6e 74 41 76 61 | 69 6c 2c 20 74 68 65 20 |EventAva|il, the |
|000045c0| 50 72 6f 63 65 73 73 20 | 4d 61 6e 61 67 65 72 20 |Process |Manager |
|000045d0| 63 68 65 63 6b 73 20 74 | 68 65 20 73 74 61 74 75 |checks t|he statu|
|000045e0| 73 20 6f 66 20 79 6f 75 | 72 20 70 72 6f 63 65 73 |s of you|r proces|
|000045f0| 73 20 61 6e 64 20 74 61 | 6b 65 73 20 74 68 65 20 |s and ta|kes the |
|00004600| 6f 70 70 6f 72 74 75 6e | 69 74 79 20 74 6f 20 73 |opportun|ity to s|
|00004610| 63 68 65 64 75 6c 65 20 | 6f 74 68 65 72 20 70 72 |chedule |other pr|
|00004620| 6f 63 65 73 73 65 73 2e | 20 55 73 69 6e 67 20 74 |ocesses.| Using t|
|00004630| 68 65 20 57 61 69 74 4e | 65 78 74 45 76 65 6e 74 |he WaitN|extEvent|
|00004640| 20 66 75 6e 63 74 69 6f | 6e 2c 20 79 6f 75 20 63 | functio|n, you c|
|00004650| 61 6e 20 63 6f 6e 74 72 | 6f 6c 20 77 68 65 6e 20 |an contr|ol when |
|00004660| 79 6f 75 72 20 70 72 6f | 63 65 73 73 20 69 73 20 |your pro|cess is |
|00004670| 65 6c 69 67 69 62 6c 65 | 20 74 6f 20 62 65 20 73 |eligible| to be s|
|00004680| 77 69 74 63 68 65 64 20 | 6f 75 74 2e 0d 54 68 65 |witched |out..The|
|00004690| 20 73 6c 65 65 70 20 70 | 61 72 61 6d 65 74 65 72 | sleep p|arameter|
|000046a0| 20 6f 66 20 57 61 69 74 | 4e 65 78 74 45 76 65 6e | of Wait|NextEven|
|000046b0| 74 20 73 70 65 63 69 66 | 69 65 73 20 61 20 6c 65 |t specif|ies a le|
|000046c0| 6e 67 74 68 20 6f 66 20 | 74 69 6d 65 2c 20 69 6e |ngth of |time, in|
|000046d0| 20 74 69 63 6b 73 2c 20 | 64 75 72 69 6e 67 20 77 | ticks, |during w|
|000046e0| 68 69 63 68 20 74 68 65 | 20 61 70 70 6c 69 63 61 |hich the| applica|
|000046f0| 74 69 6f 6e 20 72 65 6c | 69 6e 71 75 69 73 68 65 |tion rel|inquishe|
|00004700| 73 20 74 68 65 20 43 50 | 55 20 69 66 20 6e 6f 20 |s the CP|U if no |
|00004710| 65 76 65 6e 74 73 20 61 | 72 65 20 70 65 6e 64 69 |events a|re pendi|
|00004720| 6e 67 2e 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |ng. For |example,|
|00004730| 20 69 66 20 79 6f 75 20 | 73 70 65 63 69 66 79 20 | if you |specify |
|00004740| 61 20 6e 6f 6e 7a 65 72 | 6f 20 76 61 6c 75 65 20 |a nonzer|o value |
|00004750| 69 6e 20 74 68 65 20 73 | 6c 65 65 70 20 70 61 72 |in the s|leep par|
|00004760| 61 6d 65 74 65 72 20 61 | 6e 64 20 6e 6f 20 65 76 |ameter a|nd no ev|
|00004770| 65 6e 74 73 20 61 72 65 | 20 70 65 6e 64 69 6e 67 |ents are| pending|
|00004780| 20 69 6e 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 | in your| applica|
|00004790| 74 69 6f 6e d5 73 20 65 | 76 65 6e 74 20 71 75 65 |tion.s e|vent que|
|000047a0| 75 65 20 77 68 65 6e 20 | 79 6f 75 20 63 61 6c 6c |ue when |you call|
|000047b0| 20 57 61 69 74 4e 65 78 | 74 45 76 65 6e 74 2c 20 | WaitNex|tEvent, |
|000047c0| 74 68 65 20 50 72 6f 63 | 65 73 73 20 4d 61 6e 61 |the Proc|ess Mana|
|000047d0| 67 65 72 20 73 61 76 65 | 73 20 74 68 65 20 63 6f |ger save|s the co|
|000047e0| 6e 74 65 78 74 20 6f 66 | 20 79 6f 75 72 20 70 72 |ntext of| your pr|
|000047f0| 6f 63 65 73 73 20 61 6e | 64 20 73 63 68 65 64 75 |ocess an|d schedu|
|00004800| 6c 65 73 20 6f 74 68 65 | 72 20 70 72 6f 63 65 73 |les othe|r proces|
|00004810| 73 65 73 20 75 6e 74 69 | 6c 20 61 6e 20 65 76 65 |ses unti|l an eve|
|00004820| 6e 74 20 62 65 63 6f 6d | 65 73 20 61 76 61 69 6c |nt becom|es avail|
|00004830| 61 62 6c 65 20 6f 72 20 | 74 68 65 20 74 69 6d 65 |able or |the time|
|00004840| 20 65 78 70 69 72 65 73 | 2e 20 4f 6e 63 65 20 74 | expires|. Once t|
|00004850| 68 65 20 73 70 65 63 69 | 66 69 65 64 20 74 69 6d |he speci|fied tim|
|00004860| 65 20 65 78 70 69 72 65 | 73 20 6f 72 20 61 6e 20 |e expire|s or an |
|00004870| 65 76 65 6e 74 20 62 65 | 63 6f 6d 65 73 20 61 76 |event be|comes av|
|00004880| 61 69 6c 61 62 6c 65 20 | 66 6f 72 20 79 6f 75 72 |ailable |for your|
|00004890| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2c 20 79 6f | applica|tion, yo|
|000048a0| 75 72 20 70 72 6f 63 65 | 73 73 20 62 65 63 6f 6d |ur proce|ss becom|
|000048b0| 65 73 20 65 6c 69 67 69 | 62 6c 65 20 74 6f 20 72 |es eligi|ble to r|
|000048c0| 75 6e 2e 20 41 74 20 74 | 68 69 73 20 74 69 6d 65 |un. At t|his time|
|000048d0| 2c 20 74 68 65 20 50 72 | 6f 63 65 73 73 20 4d 61 |, the Pr|ocess Ma|
|000048e0| 6e 61 67 65 72 20 73 63 | 68 65 64 75 6c 65 73 20 |nager sc|hedules |
|000048f0| 79 6f 75 72 20 70 72 6f | 63 65 73 73 20 74 6f 20 |your pro|cess to |
|00004900| 72 75 6e 20 61 74 20 74 | 68 65 20 6e 65 78 74 20 |run at t|he next |
|00004910| 61 76 61 69 6c 61 62 6c | 65 20 63 68 61 6e 63 65 |availabl|e chance|
|00004920| 2e 20 28 59 6f 75 20 63 | 61 6e 20 61 6c 73 6f 20 |. (You c|an also |
|00004930| 63 61 6c 6c 20 74 68 65 | 20 57 61 6b 65 55 70 50 |call the| WakeUpP|
|00004940| 72 6f 63 65 73 73 20 66 | 75 6e 63 74 69 6f 6e 20 |rocess f|unction |
|00004950| 74 6f 20 6d 61 6b 65 20 | 61 20 70 72 6f 63 65 73 |to make |a proces|
|00004960| 73 20 65 6c 69 67 69 62 | 6c 65 20 74 6f 20 72 75 |s eligib|le to ru|
|00004970| 6e 20 62 65 66 6f 72 65 | 20 74 68 65 20 74 69 6d |n before| the tim|
|00004980| 65 20 69 6e 20 74 68 65 | 20 73 6c 65 65 70 20 70 |e in the| sleep p|
|00004990| 61 72 61 6d 65 74 65 72 | 20 65 78 70 69 72 65 73 |arameter| expires|
|000049a0| 2e 29 20 49 6e 20 74 68 | 65 20 63 61 73 65 20 74 |.) In th|e case t|
|000049b0| 68 61 74 20 79 6f 75 72 | 20 73 6c 65 65 70 20 76 |hat your| sleep v|
|000049c0| 61 6c 75 65 20 65 78 70 | 69 72 65 73 20 61 6e 64 |alue exp|ires and|
|000049d0| 20 6e 6f 20 65 76 65 6e | 74 73 20 61 72 65 20 70 | no even|ts are p|
|000049e0| 65 6e 64 69 6e 67 20 66 | 6f 72 20 79 6f 75 72 20 |ending f|or your |
|000049f0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2c 20 74 68 65 |applicat|ion, the|
|00004a00| 20 50 72 6f 63 65 73 73 | 20 4d 61 6e 61 67 65 72 | Process| Manager|
|00004a10| 20 73 65 6e 64 73 20 79 | 6f 75 72 20 61 70 70 6c | sends y|our appl|
|00004a20| 69 63 61 74 69 6f 6e 20 | 61 20 6e 75 6c 6c 20 65 |ication |a null e|
|00004a30| 76 65 6e 74 2e 0d 49 6e | 20 67 65 6e 65 72 61 6c |vent..In| general|
|00004a40| 2c 20 79 6f 75 20 73 68 | 6f 75 6c 64 20 73 70 65 |, you sh|ould spe|
|00004a50| 63 69 66 79 20 61 20 76 | 61 6c 75 65 20 67 72 65 |cify a v|alue gre|
|00004a60| 61 74 65 72 20 74 68 61 | 6e 20 30 20 69 6e 20 74 |ater tha|n 0 in t|
|00004a70| 68 65 20 73 6c 65 65 70 | 20 70 61 72 61 6d 65 74 |he sleep| paramet|
|00004a80| 65 72 20 73 6f 20 74 68 | 61 74 20 74 68 6f 73 65 |er so th|at those|
|00004a90| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 74 68 | applica|tions th|
|00004aa0| 61 74 20 6e 65 65 64 20 | 70 72 6f 63 65 73 73 69 |at need |processi|
|00004ab0| 6e 67 20 74 69 6d 65 20 | 63 61 6e 20 67 65 74 20 |ng time |can get |
|00004ac0| 69 74 2e 20 49 66 20 79 | 6f 75 72 20 61 70 70 6c |it. If y|our appl|
|00004ad0| 69 63 61 74 69 6f 6e 20 | 70 65 72 66 6f 72 6d 73 |ication |performs|
|00004ae0| 20 61 6e 79 20 70 65 72 | 69 6f 64 69 63 20 74 61 | any per|iodic ta|
|00004af0| 73 6b 2c 20 74 68 65 6e | 20 74 68 65 20 66 72 65 |sk, then| the fre|
|00004b00| 71 75 65 6e 63 79 20 6f | 66 20 74 68 65 20 74 61 |quency o|f the ta|
|00004b10| 73 6b 20 75 73 75 61 6c | 6c 79 20 64 65 74 65 72 |sk usual|ly deter|
|00004b20| 6d 69 6e 65 73 20 77 68 | 61 74 20 76 61 6c 75 65 |mines wh|at value|
|00004b30| 20 79 6f 75 20 73 70 65 | 63 69 66 79 20 69 6e 20 | you spe|cify in |
|00004b40| 74 68 65 20 73 6c 65 65 | 70 20 70 61 72 61 6d 65 |the slee|p parame|
|00004b50| 74 65 72 2e 20 54 68 65 | 20 6c 65 73 73 20 66 72 |ter. The| less fr|
|00004b60| 65 71 75 65 6e 74 20 74 | 68 65 20 74 61 73 6b 2c |equent t|he task,|
|00004b70| 20 74 68 65 20 68 69 67 | 68 65 72 20 74 68 65 20 | the hig|her the |
|00004b80| 76 61 6c 75 65 20 6f 66 | 20 74 68 65 20 73 6c 65 |value of| the sle|
|00004b90| 65 70 20 70 61 72 61 6d | 65 74 65 72 2e 20 41 20 |ep param|eter. A |
|00004ba0| 72 65 61 73 6f 6e 61 62 | 6c 65 20 76 61 6c 75 65 |reasonab|le value|
|00004bb0| 20 66 6f 72 20 74 68 65 | 20 73 6c 65 65 70 20 70 | for the| sleep p|
|00004bc0| 61 72 61 6d 65 74 65 72 | 20 69 73 20 36 30 2e 0d |arameter| is 60..|
|00004bd0| 55 73 69 6e 67 20 74 68 | 65 20 50 72 6f 63 65 73 |Using th|e Proces|
|00004be0| 73 20 4d 61 6e 61 67 65 | 72 20 0d 54 68 65 20 50 |s Manage|r .The P|
|00004bf0| 72 6f 63 65 73 73 20 4d | 61 6e 61 67 65 72 20 6d |rocess M|anager m|
|00004c00| 61 6e 61 67 65 73 20 74 | 68 65 20 73 63 68 65 64 |anages t|he sched|
|00004c10| 75 6c 69 6e 67 20 6f 66 | 20 61 6c 6c 20 70 72 6f |uling of| all pro|
|00004c20| 63 65 73 73 65 73 2e 20 | 59 6f 75 20 63 61 6e 20 |cesses. |You can |
|00004c30| 75 73 65 20 74 68 65 20 | 50 72 6f 63 65 73 73 20 |use the |Process |
|00004c40| 4d 61 6e 61 67 65 72 20 | 72 6f 75 74 69 6e 65 73 |Manager |routines|
|00004c50| 20 74 6f 0d 6e 09 63 6f | 6e 74 72 6f 6c 20 74 68 | to.n.co|ntrol th|
|00004c60| 65 20 65 78 65 63 75 74 | 69 6f 6e 20 6f 66 20 79 |e execut|ion of y|
|00004c70| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 0d |our appl|ication.|
|00004c80| 6e 09 75 73 65 20 74 68 | 65 20 69 6e 66 6f 72 6d |n.use th|e inform|
|00004c90| 61 74 69 6f 6e 20 70 72 | 6f 76 69 64 65 64 20 62 |ation pr|ovided b|
|00004ca0| 79 20 74 68 65 20 46 69 | 6e 64 65 72 20 74 6f 20 |y the Fi|nder to |
|00004cb0| 6f 70 65 6e 20 6f 72 20 | 70 72 69 6e 74 20 66 69 |open or |print fi|
|00004cc0| 6c 65 73 0d 6e 09 67 65 | 74 20 69 6e 66 6f 72 6d |les.n.ge|t inform|
|00004cd0| 61 74 69 6f 6e 20 61 62 | 6f 75 74 20 70 72 6f 63 |ation ab|out proc|
|00004ce0| 65 73 73 65 73 0d 6e 09 | 6c 61 75 6e 63 68 20 6f |esses.n.|launch o|
|00004cf0| 74 68 65 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |ther app|lication|
|00004d00| 73 0d 6e 09 6c 61 75 6e | 63 68 20 64 65 73 6b 20 |s.n.laun|ch desk |
|00004d10| 61 63 63 65 73 73 6f 72 | 69 65 73 0d 54 68 65 20 |accessor|ies.The |
|00004d20| 50 72 6f 63 65 73 73 20 | 4d 61 6e 61 67 65 72 20 |Process |Manager |
|00004d30| 61 73 73 69 67 6e 73 20 | 61 20 70 72 6f 63 65 73 |assigns |a proces|
|00004d40| 73 20 73 65 72 69 61 6c | 20 6e 75 6d 62 65 72 20 |s serial| number |
|00004d50| 74 6f 20 65 61 63 68 20 | 6f 70 65 6e 20 61 70 70 |to each |open app|
|00004d60| 6c 69 63 61 74 69 6f 6e | 20 28 6f 72 20 64 65 73 |lication| (or des|
|00004d70| 6b 20 61 63 63 65 73 73 | 6f 72 79 2c 20 69 66 20 |k access|ory, if |
|00004d80| 69 74 20 69 73 20 6e 6f | 74 20 6f 70 65 6e 65 64 |it is no|t opened|
|00004d90| 20 69 6e 20 74 68 65 20 | 63 6f 6e 74 65 78 74 20 | in the |context |
|00004da0| 6f 66 20 61 6e 20 61 70 | 70 6c 69 63 61 74 69 6f |of an ap|plicatio|
|00004db0| 6e 29 2e 20 54 68 65 20 | 70 72 6f 63 65 73 73 20 |n). The |process |
|00004dc0| 73 65 72 69 61 6c 20 6e | 75 6d 62 65 72 20 69 73 |serial n|umber is|
|00004dd0| 20 75 6e 69 71 75 65 20 | 74 6f 20 65 61 63 68 20 | unique |to each |
|00004de0| 70 72 6f 63 65 73 73 20 | 6f 6e 20 74 68 65 20 6c |process |on the l|
|00004df0| 6f 63 61 6c 20 6d 61 63 | 68 69 6e 65 20 61 6e 64 |ocal mac|hine and|
|00004e00| 20 69 73 20 76 61 6c 69 | 64 20 66 6f 72 20 61 20 | is vali|d for a |
|00004e10| 73 69 6e 67 6c 65 20 62 | 6f 6f 74 20 6f 66 20 74 |single b|oot of t|
|00004e20| 68 65 20 6d 61 63 68 69 | 6e 65 2e 20 59 6f 75 20 |he machi|ne. You |
|00004e30| 63 61 6e 20 75 73 65 20 | 74 68 65 20 70 72 6f 63 |can use |the proc|
|00004e40| 65 73 73 20 73 65 72 69 | 61 6c 20 6e 75 6d 62 65 |ess seri|al numbe|
|00004e50| 72 20 74 6f 20 73 70 65 | 63 69 66 79 20 61 20 70 |r to spe|cify a p|
|00004e60| 61 72 74 69 63 75 6c 61 | 72 20 70 72 6f 63 65 73 |articula|r proces|
|00004e70| 73 20 66 6f 72 20 6d 6f | 73 74 20 50 72 6f 63 65 |s for mo|st Proce|
|00004e80| 73 73 20 4d 61 6e 61 67 | 65 72 20 72 6f 75 74 69 |ss Manag|er routi|
|00004e90| 6e 65 73 2e 0d 4f 70 65 | 6e 69 6e 67 20 6f 72 20 |nes..Ope|ning or |
|00004ea0| 50 72 69 6e 74 69 6e 67 | 20 46 69 6c 65 73 20 66 |Printing| Files f|
|00004eb0| 72 6f 6d 20 74 68 65 20 | 46 69 6e 64 65 72 0d 57 |rom the |Finder.W|
|00004ec0| 68 65 6e 20 61 20 75 73 | 65 72 20 6f 70 65 6e 73 |hen a us|er opens|
|00004ed0| 20 6f 72 20 70 72 69 6e | 74 73 20 61 20 66 69 6c | or prin|ts a fil|
|00004ee0| 65 20 66 72 6f 6d 20 74 | 68 65 20 46 69 6e 64 65 |e from t|he Finde|
|00004ef0| 72 2c 20 74 68 65 20 46 | 69 6e 64 65 72 20 75 73 |r, the F|inder us|
|00004f00| 65 73 20 74 68 65 20 50 | 72 6f 63 65 73 73 20 4d |es the P|rocess M|
|00004f10| 61 6e 61 67 65 72 20 74 | 6f 20 6c 61 75 6e 63 68 |anager t|o launch|
|00004f20| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|00004f30| 20 74 68 61 74 20 63 72 | 65 61 74 65 64 20 74 68 | that cr|eated th|
|00004f40| 65 20 66 69 6c 65 2e 20 | 54 68 65 20 46 69 6e 64 |e file. |The Find|
|00004f50| 65 72 20 73 65 74 73 20 | 75 70 20 74 68 65 20 69 |er sets |up the i|
|00004f60| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 79 6f 75 72 20 |nformati|on your |
|00004f70| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 63 61 6e 20 |applicat|ion can |
|00004f80| 75 73 65 20 74 6f 20 64 | 65 74 65 72 6d 69 6e 65 |use to d|etermine|
|00004f90| 20 77 68 69 63 68 20 66 | 69 6c 65 73 20 74 6f 20 | which f|iles to |
|00004fa0| 6f 70 65 6e 20 6f 72 20 | 70 72 69 6e 74 2e 20 54 |open or |print. T|
|00004fb0| 68 65 20 46 69 6e 64 65 | 72 20 69 6e 66 6f 72 6d |he Finde|r inform|
|00004fc0| 61 74 69 6f 6e 20 69 6e | 63 6c 75 64 65 73 20 61 |ation in|cludes a|
|00004fd0| 20 6c 69 73 74 20 6f 66 | 20 66 69 6c 65 73 20 74 | list of| files t|
|00004fe0| 6f 20 6f 70 65 6e 20 6f | 72 20 70 72 69 6e 74 2e |o open o|r print.|
|00004ff0| 0d 49 6e 20 76 65 72 73 | 69 6f 6e 20 37 2e 30 20 |.In vers|ion 7.0 |
|00005000| 61 6e 64 20 6c 61 74 65 | 72 2c 20 61 70 70 6c 69 |and late|r, appli|
|00005010| 63 61 74 69 6f 6e 73 20 | 74 68 61 74 20 73 75 70 |cations |that sup|
|00005020| 70 6f 72 74 20 68 69 67 | 68 2d 6c 65 76 65 6c 20 |port hig|h-level |
|00005030| 65 76 65 6e 74 73 20 28 | 74 68 61 74 20 69 73 2c |events (|that is,|
|00005040| 20 74 68 61 74 20 68 61 | 76 65 20 74 68 65 20 69 | that ha|ve the i|
|00005050| 73 48 69 67 68 4c 65 76 | 65 6c 45 76 65 6e 74 41 |sHighLev|elEventA|
|00005060| 77 61 72 65 20 66 6c 61 | 67 20 73 65 74 20 69 6e |ware fla|g set in|
|00005070| 20 74 68 65 20 27 53 49 | 5a 45 27 20 72 65 73 6f | the 'SI|ZE' reso|
|00005080| 75 72 63 65 29 20 72 65 | 63 65 69 76 65 20 74 68 |urce) re|ceive th|
|00005090| 65 20 46 69 6e 64 65 72 | 20 69 6e 66 6f 72 6d 61 |e Finder| informa|
|000050a0| 74 69 6f 6e 20 74 68 72 | 6f 75 67 68 20 41 70 70 |tion thr|ough App|
|000050b0| 6c 65 20 65 76 65 6e 74 | 73 2e 20 54 68 65 20 63 |le event|s. The c|
|000050c0| 68 61 70 74 65 72 20 d2 | 54 68 65 20 41 70 70 6c |hapter .|The Appl|
|000050d0| 65 20 45 76 65 6e 74 20 | 4d 61 6e 61 67 65 72 d3 |e Event |Manager.|
|000050e0| 20 69 6e 20 49 6e 73 69 | 64 65 20 4d 61 63 69 6e | in Insi|de Macin|
|000050f0| 74 6f 73 68 3a 20 43 6f | 6c 6c 61 62 6f 72 61 74 |tosh: Co|llaborat|
|00005100| 69 76 65 20 43 6f 6d 70 | 75 74 69 6e 67 20 64 65 |ive Comp|uting de|
|00005110| 73 63 72 69 62 65 73 20 | 68 6f 77 20 79 6f 75 72 |scribes |how your|
|00005120| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 70 72 6f | applica|tion pro|
|00005130| 63 65 73 73 65 73 20 41 | 70 70 6c 65 20 65 76 65 |cesses A|pple eve|
|00005140| 6e 74 73 20 74 6f 20 6f | 70 65 6e 20 6f 72 20 70 |nts to o|pen or p|
|00005150| 72 69 6e 74 20 66 69 6c | 65 73 2e 0d 41 70 70 6c |rint fil|es..Appl|
|00005160| 69 63 61 74 69 6f 6e 73 | 20 74 68 61 74 20 64 6f |ications| that do|
|00005170| 20 6e 6f 74 20 73 75 70 | 70 6f 72 74 20 68 69 67 | not sup|port hig|
|00005180| 68 2d 6c 65 76 65 6c 20 | 65 76 65 6e 74 73 20 63 |h-level |events c|
|00005190| 61 6e 20 63 61 6c 6c 20 | 74 68 65 20 43 6f 75 6e |an call |the Coun|
|000051a0| 74 41 70 70 46 69 6c 65 | 73 2c 20 47 65 74 41 70 |tAppFile|s, GetAp|
|000051b0| 70 46 69 6c 65 73 2c 20 | 61 6e 64 20 43 6c 72 41 |pFiles, |and ClrA|
|000051c0| 70 70 46 69 6c 65 73 20 | 72 6f 75 74 69 6e 65 73 |ppFiles |routines|
|000051d0| 20 6f 72 20 74 68 65 20 | 47 65 74 41 70 70 50 61 | or the |GetAppPa|
|000051e0| 72 6d 73 20 72 6f 75 74 | 69 6e 65 20 74 6f 20 67 |rms rout|ine to g|
|000051f0| 65 74 20 74 68 65 20 46 | 69 6e 64 65 72 20 69 6e |et the F|inder in|
|00005200| 66 6f 72 6d 61 74 69 6f | 6e 2e 20 53 65 65 20 74 |formatio|n. See t|
|00005210| 68 65 20 63 68 61 70 74 | 65 72 20 d2 49 6e 74 72 |he chapt|er .Intr|
|00005220| 6f 64 75 63 74 69 6f 6e | 20 74 6f 20 46 69 6c 65 |oduction| to File|
|00005230| 20 4d 61 6e 61 67 65 6d | 65 6e 74 d3 20 69 6e 20 | Managem|ent. in |
|00005240| 74 68 69 73 20 62 6f 6f | 6b 20 66 6f 72 20 69 6e |this boo|k for in|
|00005250| 66 6f 72 6d 61 74 69 6f | 6e 20 6f 6e 20 74 68 65 |formatio|n on the|
|00005260| 73 65 20 72 6f 75 74 69 | 6e 65 73 2e 0d 47 65 74 |se routi|nes..Get|
|00005270| 74 69 6e 67 20 49 6e 66 | 6f 72 6d 61 74 69 6f 6e |ting Inf|ormation|
|00005280| 20 41 62 6f 75 74 20 4f | 74 68 65 72 20 50 72 6f | About O|ther Pro|
|00005290| 63 65 73 73 65 73 0d 59 | 6f 75 20 63 61 6e 20 63 |cesses.Y|ou can c|
|000052a0| 61 6c 6c 20 74 68 65 20 | 47 65 74 4e 65 78 74 50 |all the |GetNextP|
|000052b0| 72 6f 63 65 73 73 2c 20 | 47 65 74 46 72 6f 6e 74 |rocess, |GetFront|
|000052c0| 50 72 6f 63 65 73 73 2c | 20 6f 72 20 47 65 74 43 |Process,| or GetC|
|000052d0| 75 72 72 65 6e 74 50 72 | 6f 63 65 73 73 20 66 75 |urrentPr|ocess fu|
|000052e0| 6e 63 74 69 6f 6e 73 20 | 74 6f 20 67 65 74 20 74 |nctions |to get t|
|000052f0| 68 65 20 70 72 6f 63 65 | 73 73 20 73 65 72 69 61 |he proce|ss seria|
|00005300| 6c 20 6e 75 6d 62 65 72 | 20 6f 66 20 61 20 70 72 |l number| of a pr|
|00005310| 6f 63 65 73 73 2e 20 54 | 68 65 20 47 65 74 43 75 |ocess. T|he GetCu|
|00005320| 72 72 65 6e 74 50 72 6f | 63 65 73 73 20 66 75 6e |rrentPro|cess fun|
|00005330| 63 74 69 6f 6e 20 72 65 | 74 75 72 6e 73 20 74 68 |ction re|turns th|
|00005340| 65 20 70 72 6f 63 65 73 | 73 20 73 65 72 69 61 6c |e proces|s serial|
|00005350| 20 6e 75 6d 62 65 72 20 | 6f 66 20 74 68 65 20 70 | number |of the p|
|00005360| 72 6f 63 65 73 73 20 74 | 68 61 74 20 69 73 20 63 |rocess t|hat is c|
|00005370| 75 72 72 65 6e 74 6c 79 | 20 65 78 65 63 75 74 69 |urrently| executi|
|00005380| 6e 67 2e 20 54 68 65 20 | 63 75 72 72 65 6e 74 20 |ng. The |current |
|00005390| 70 72 6f 63 65 73 73 20 | 69 73 20 74 68 65 20 70 |process |is the p|
|000053a0| 72 6f 63 65 73 73 20 77 | 68 6f 73 65 20 41 35 20 |rocess w|hose A5 |
|000053b0| 77 6f 72 6c 64 20 69 73 | 20 63 75 72 72 65 6e 74 |world is| current|
|000053c0| 6c 79 20 76 61 6c 69 64 | 3b 20 74 68 69 73 20 70 |ly valid|; this p|
|000053d0| 72 6f 63 65 73 73 20 63 | 61 6e 20 62 65 20 69 6e |rocess c|an be in|
|000053e0| 20 74 68 65 20 62 61 63 | 6b 67 72 6f 75 6e 64 20 | the bac|kground |
|000053f0| 6f 72 20 66 6f 72 65 67 | 72 6f 75 6e 64 2e 20 54 |or foreg|round. T|
|00005400| 68 65 20 47 65 74 46 72 | 6f 6e 74 50 72 6f 63 65 |he GetFr|ontProce|
|00005410| 73 73 20 66 75 6e 63 74 | 69 6f 6e 20 72 65 74 75 |ss funct|ion retu|
|00005420| 72 6e 73 20 74 68 65 20 | 70 72 6f 63 65 73 73 20 |rns the |process |
|00005430| 73 65 72 69 61 6c 20 6e | 75 6d 62 65 72 20 6f 66 |serial n|umber of|
|00005440| 20 74 68 65 20 66 6f 72 | 65 67 72 6f 75 6e 64 20 | the for|eground |
|00005450| 70 72 6f 63 65 73 73 2e | 20 46 6f 72 20 65 78 61 |process.| For exa|
|00005460| 6d 70 6c 65 2c 20 69 66 | 20 79 6f 75 72 20 70 72 |mple, if| your pr|
|00005470| 6f 63 65 73 73 20 69 73 | 20 72 75 6e 6e 69 6e 67 |ocess is| running|
|00005480| 20 69 6e 20 74 68 65 20 | 62 61 63 6b 67 72 6f 75 | in the |backgrou|
|00005490| 6e 64 2c 20 79 6f 75 20 | 63 61 6e 20 75 73 65 20 |nd, you |can use |
|000054a0| 47 65 74 46 72 6f 6e 74 | 50 72 6f 63 65 73 73 20 |GetFront|Process |
|000054b0| 74 6f 20 64 65 74 65 72 | 6d 69 6e 65 20 77 68 69 |to deter|mine whi|
|000054c0| 63 68 20 70 72 6f 63 65 | 73 73 20 69 73 20 69 6e |ch proce|ss is in|
|000054d0| 20 74 68 65 20 66 6f 72 | 65 67 72 6f 75 6e 64 2e | the for|eground.|
|000054e0| 0d 54 68 65 20 50 72 6f | 63 65 73 73 20 4d 61 6e |.The Pro|cess Man|
|000054f0| 61 67 65 72 20 6d 61 69 | 6e 74 61 69 6e 73 20 61 |ager mai|ntains a|
|00005500| 20 6c 69 73 74 20 6f 66 | 20 61 6c 6c 20 6f 70 65 | list of| all ope|
|00005510| 6e 20 70 72 6f 63 65 73 | 73 65 73 2e 20 59 6f 75 |n proces|ses. You|
|00005520| 20 63 61 6e 20 73 70 65 | 63 69 66 79 20 74 68 65 | can spe|cify the|
|00005530| 20 70 72 6f 63 65 73 73 | 20 73 65 72 69 61 6c 20 | process| serial |
|00005540| 6e 75 6d 62 65 72 20 6f | 66 20 61 20 70 72 6f 63 |number o|f a proc|
|00005550| 65 73 73 20 63 75 72 72 | 65 6e 74 6c 79 20 69 6e |ess curr|ently in|
|00005560| 20 74 68 65 20 6c 69 73 | 74 20 61 6e 64 20 63 61 | the lis|t and ca|
|00005570| 6c 6c 20 47 65 74 4e 65 | 78 74 50 72 6f 63 65 73 |ll GetNe|xtProces|
|00005580| 73 20 74 6f 20 67 65 74 | 20 74 68 65 20 70 72 6f |s to get| the pro|
|00005590| 63 65 73 73 20 73 65 72 | 69 61 6c 20 6e 75 6d 62 |cess ser|ial numb|
|000055a0| 65 72 20 6f 66 20 74 68 | 65 20 6e 65 78 74 20 70 |er of th|e next p|
|000055b0| 72 6f 63 65 73 73 20 69 | 6e 20 74 68 65 20 6c 69 |rocess i|n the li|
|000055c0| 73 74 2e 20 54 68 65 20 | 69 6e 74 65 72 70 72 65 |st. The |interpre|
|000055d0| 74 61 74 69 6f 6e 20 6f | 66 20 74 68 65 20 76 61 |tation o|f the va|
|000055e0| 6c 75 65 20 6f 66 20 61 | 20 70 72 6f 63 65 73 73 |lue of a| process|
|000055f0| 20 73 65 72 69 61 6c 20 | 6e 75 6d 62 65 72 20 61 | serial |number a|
|00005600| 6e 64 20 74 68 65 20 6f | 72 64 65 72 20 6f 66 20 |nd the o|rder of |
|00005610| 74 68 65 20 6c 69 73 74 | 20 6f 66 20 70 72 6f 63 |the list| of proc|
|00005620| 65 73 73 65 73 20 69 73 | 20 69 6e 74 65 72 6e 61 |esses is| interna|
|00005630| 6c 20 74 6f 20 74 68 65 | 20 50 72 6f 63 65 73 73 |l to the| Process|
|00005640| 20 4d 61 6e 61 67 65 72 | 2e 0d 57 68 65 6e 20 73 | Manager|..When s|
|00005650| 70 65 63 69 66 79 69 6e | 67 20 61 20 70 61 72 74 |pecifyin|g a part|
|00005660| 69 63 75 6c 61 72 20 70 | 72 6f 63 65 73 73 2c 20 |icular p|rocess, |
|00005670| 75 73 65 20 6f 6e 6c 79 | 20 61 20 70 72 6f 63 65 |use only| a proce|
|00005680| 73 73 20 73 65 72 69 61 | 6c 20 6e 75 6d 62 65 72 |ss seria|l number|
|00005690| 20 72 65 74 75 72 6e 65 | 64 20 62 79 20 61 20 68 | returne|d by a h|
|000056a0| 69 67 68 2d 6c 65 76 65 | 6c 20 65 76 65 6e 74 20 |igh-leve|l event |
|000056b0| 6f 72 20 61 20 50 72 6f | 63 65 73 73 20 4d 61 6e |or a Pro|cess Man|
|000056c0| 61 67 65 72 20 72 6f 75 | 74 69 6e 65 2c 20 6f 72 |ager rou|tine, or|
|000056d0| 20 63 6f 6e 73 74 61 6e | 74 73 20 64 65 66 69 6e | constan|ts defin|
|000056e0| 65 64 20 62 79 20 74 68 | 65 20 50 72 6f 63 65 73 |ed by th|e Proces|
|000056f0| 73 20 4d 61 6e 61 67 65 | 72 2e 20 59 6f 75 20 63 |s Manage|r. You c|
|00005700| 61 6e 20 75 73 65 20 74 | 68 65 73 65 20 63 6f 6e |an use t|hese con|
|00005710| 73 74 61 6e 74 73 20 74 | 6f 20 73 70 65 63 69 66 |stants t|o specif|
|00005720| 79 20 73 70 65 63 69 61 | 6c 20 70 72 6f 63 65 73 |y specia|l proces|
|00005730| 73 65 73 3a 20 0d 43 4f | 4e 53 54 09 09 09 09 09 |ses: .CO|NST.....|
|00005740| 6b 4e 6f 50 72 6f 63 65 | 73 73 09 09 09 09 09 09 |kNoProce|ss......|
|00005750| 3d 20 30 3b 09 09 09 09 | 7b 70 72 6f 63 65 73 73 |= 0;....|{process|
|00005760| 20 64 6f 65 73 6e d5 74 | 20 65 78 69 73 74 7d 0d | doesn.t| exist}.|
|00005770| 09 09 09 09 09 6b 53 79 | 73 74 65 6d 50 72 6f 63 |.....kSy|stemProc|
|00005780| 65 73 73 09 09 09 09 09 | 09 3d 20 31 3b 09 09 09 |ess.....|.= 1;...|
|00005790| 09 7b 70 72 6f 63 65 73 | 73 20 62 65 6c 6f 6e 67 |.{proces|s belong|
|000057a0| 73 20 74 6f 20 4f 53 7d | 0d 09 09 09 09 09 6b 43 |s to OS}|......kC|
|000057b0| 75 72 72 65 6e 74 50 72 | 6f 63 65 73 73 20 09 09 |urrentPr|ocess ..|
|000057c0| 09 09 09 09 3d 20 32 3b | 09 09 09 09 7b 74 68 65 |....= 2;|....{the|
|000057d0| 20 63 75 72 72 65 6e 74 | 20 70 72 6f 63 65 73 73 | current| process|
|000057e0| 7d 0d 49 6e 20 61 6c 6c | 20 50 72 6f 63 65 73 73 |}.In all| Process|
|000057f0| 20 4d 61 6e 61 67 65 72 | 20 72 6f 75 74 69 6e 65 | Manager| routine|
|00005800| 73 2c 20 74 68 65 20 63 | 6f 6e 73 74 61 6e 74 20 |s, the c|onstant |
|00005810| 6b 4e 6f 50 72 6f 63 65 | 73 73 20 72 65 66 65 72 |kNoProce|ss refer|
|00005820| 73 20 74 6f 20 61 20 70 | 72 6f 63 65 73 73 20 74 |s to a p|rocess t|
|00005830| 68 61 74 20 64 6f 65 73 | 6e d5 74 20 65 78 69 73 |hat does|n.t exis|
|00005840| 74 2c 20 74 68 65 20 63 | 6f 6e 73 74 61 6e 74 20 |t, the c|onstant |
|00005850| 6b 53 79 73 74 65 6d 50 | 72 6f 63 65 73 73 20 72 |kSystemP|rocess r|
|00005860| 65 66 65 72 73 20 74 6f | 20 61 20 70 72 6f 63 65 |efers to| a proce|
|00005870| 73 73 20 62 65 6c 6f 6e | 67 69 6e 67 20 74 6f 20 |ss belon|ging to |
|00005880| 74 68 65 20 4f 70 65 72 | 61 74 69 6e 67 20 53 79 |the Oper|ating Sy|
|00005890| 73 74 65 6d 2c 20 61 6e | 64 20 74 68 65 20 63 6f |stem, an|d the co|
|000058a0| 6e 73 74 61 6e 74 20 6b | 43 75 72 72 65 6e 74 50 |nstant k|CurrentP|
|000058b0| 72 6f 63 65 73 73 20 72 | 65 66 65 72 73 20 74 6f |rocess r|efers to|
|000058c0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 70 72 6f | the cur|rent pro|
|000058d0| 63 65 73 73 2e 20 0d 54 | 6f 20 62 65 67 69 6e 20 |cess. .T|o begin |
|000058e0| 65 6e 75 6d 65 72 61 74 | 69 6e 67 20 61 20 6c 69 |enumerat|ing a li|
|000058f0| 73 74 20 6f 66 20 70 72 | 6f 63 65 73 73 65 73 2c |st of pr|ocesses,|
|00005900| 20 63 61 6c 6c 20 74 68 | 65 20 47 65 74 4e 65 78 | call th|e GetNex|
|00005910| 74 50 72 6f 63 65 73 73 | 20 66 75 6e 63 74 69 6f |tProcess| functio|
|00005920| 6e 20 61 6e 64 20 73 70 | 65 63 69 66 79 20 74 68 |n and sp|ecify th|
|00005930| 65 20 63 6f 6e 73 74 61 | 6e 74 20 6b 4e 6f 50 72 |e consta|nt kNoPr|
|00005940| 6f 63 65 73 73 20 61 73 | 20 74 68 65 20 70 61 72 |ocess as| the par|
|00005950| 61 6d 65 74 65 72 2e 20 | 49 6e 20 72 65 73 70 6f |ameter. |In respo|
|00005960| 6e 73 65 2c 20 47 65 74 | 4e 65 78 74 50 72 6f 63 |nse, Get|NextProc|
|00005970| 65 73 73 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 |ess retu|rns the |
|00005980| 70 72 6f 63 65 73 73 20 | 73 65 72 69 61 6c 20 6e |process |serial n|
|00005990| 75 6d 62 65 72 20 6f 66 | 20 74 68 65 20 66 69 72 |umber of| the fir|
|000059a0| 73 74 20 70 72 6f 63 65 | 73 73 20 69 6e 20 74 68 |st proce|ss in th|
|000059b0| 65 20 6c 69 73 74 2e 20 | 59 6f 75 20 63 61 6e 20 |e list. |You can |
|000059c0| 75 73 65 20 74 68 65 20 | 72 65 74 75 72 6e 65 64 |use the |returned|
|000059d0| 20 70 72 6f 63 65 73 73 | 20 73 65 72 69 61 6c 20 | process| serial |
|000059e0| 6e 75 6d 62 65 72 20 74 | 6f 20 67 65 74 20 74 68 |number t|o get th|
|000059f0| 65 20 70 72 6f 63 65 73 | 73 20 73 65 72 69 61 6c |e proces|s serial|
|00005a00| 20 6e 75 6d 62 65 72 20 | 6f 66 20 74 68 65 20 6e | number |of the n|
|00005a10| 65 78 74 20 70 72 6f 63 | 65 73 73 20 69 6e 20 74 |ext proc|ess in t|
|00005a20| 68 65 20 6c 69 73 74 2e | 20 57 68 65 6e 20 74 68 |he list.| When th|
|00005a30| 65 20 47 65 74 4e 65 78 | 74 50 72 6f 63 65 73 73 |e GetNex|tProcess|
|00005a40| 20 66 75 6e 63 74 69 6f | 6e 20 72 65 61 63 68 65 | functio|n reache|
|00005a50| 73 20 74 68 65 20 65 6e | 64 20 6f 66 20 74 68 65 |s the en|d of the|
|00005a60| 20 6c 69 73 74 2c 20 69 | 74 20 72 65 74 75 72 6e | list, i|t return|
|00005a70| 73 20 74 68 65 20 63 6f | 6e 73 74 61 6e 74 20 6b |s the co|nstant k|
|00005a80| 4e 6f 50 72 6f 63 65 73 | 73 20 61 6e 64 20 74 68 |NoProces|s and th|
|00005a90| 65 20 72 65 73 75 6c 74 | 20 63 6f 64 65 20 70 72 |e result| code pr|
|00005aa0| 6f 63 4e 6f 74 46 6f 75 | 6e 64 2e 0d 59 6f 75 20 |ocNotFou|nd..You |
|00005ab0| 63 61 6e 20 61 6c 73 6f | 20 75 73 65 20 61 20 70 |can also| use a p|
|00005ac0| 72 6f 63 65 73 73 20 73 | 65 72 69 61 6c 20 6e 75 |rocess s|erial nu|
|00005ad0| 6d 62 65 72 20 74 6f 20 | 73 70 65 63 69 66 79 20 |mber to |specify |
|00005ae0| 61 20 74 61 72 67 65 74 | 20 61 70 70 6c 69 63 61 |a target| applica|
|00005af0| 74 69 6f 6e 20 77 68 65 | 6e 20 79 6f 75 72 20 61 |tion whe|n your a|
|00005b00| 70 70 6c 69 63 61 74 69 | 6f 6e 20 73 65 6e 64 73 |pplicati|on sends|
|00005b10| 20 61 20 68 69 67 68 2d | 6c 65 76 65 6c 20 65 76 | a high-|level ev|
|00005b20| 65 6e 74 2e 20 53 65 65 | 20 74 68 65 20 63 68 61 |ent. See| the cha|
|00005b30| 70 74 65 72 20 d2 54 68 | 65 20 45 76 65 6e 74 20 |pter .Th|e Event |
|00005b40| 4d 61 6e 61 67 65 72 d3 | 20 69 6e 20 49 6e 73 69 |Manager.| in Insi|
|00005b50| 64 65 20 4d 61 63 69 6e | 74 6f 73 68 3a 20 54 68 |de Macin|tosh: Th|
|00005b60| 65 20 54 6f 6f 6c 62 6f | 78 20 66 6f 72 20 69 6e |e Toolbo|x for in|
|00005b70| 66 6f 72 6d 61 74 69 6f | 6e 20 6f 6e 20 68 6f 77 |formatio|n on how|
|00005b80| 20 74 6f 20 75 73 65 20 | 61 20 70 72 6f 63 65 73 | to use |a proces|
|00005b90| 73 20 73 65 72 69 61 6c | 20 6e 75 6d 62 65 72 20 |s serial| number |
|00005ba0| 77 68 65 6e 20 79 6f 75 | 72 20 61 70 70 6c 69 63 |when you|r applic|
|00005bb0| 61 74 69 6f 6e 20 73 65 | 6e 64 73 20 61 20 68 69 |ation se|nds a hi|
|00005bc0| 67 68 2d 6c 65 76 65 6c | 20 65 76 65 6e 74 2e 0d |gh-level| event..|
|00005bd0| 59 6f 75 20 63 61 6e 20 | 63 61 6c 6c 20 74 68 65 |You can |call the|
|00005be0| 20 47 65 74 50 72 6f 63 | 65 73 73 49 6e 66 6f 72 | GetProc|essInfor|
|00005bf0| 6d 61 74 69 6f 6e 20 66 | 75 6e 63 74 69 6f 6e 20 |mation f|unction |
|00005c00| 74 6f 20 6f 62 74 61 69 | 6e 20 69 6e 66 6f 72 6d |to obtai|n inform|
|00005c10| 61 74 69 6f 6e 20 61 62 | 6f 75 74 20 61 6e 79 20 |ation ab|out any |
|00005c20| 70 72 6f 63 65 73 73 2c | 20 69 6e 63 6c 75 64 69 |process,| includi|
|00005c30| 6e 67 20 79 6f 75 72 20 | 6f 77 6e 2e 20 46 6f 72 |ng your |own. For|
|00005c40| 20 65 78 61 6d 70 6c 65 | 2c 20 66 6f 72 20 61 20 | example|, for a |
|00005c50| 73 70 65 63 69 66 69 65 | 64 20 70 72 6f 63 65 73 |specifie|d proces|
|00005c60| 73 2c 20 79 6f 75 20 63 | 61 6e 20 66 69 6e 64 20 |s, you c|an find |
|00005c70| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e d5 |the appl|ication.|
|00005c80| 73 20 6e 61 6d 65 20 61 | 73 20 69 74 20 61 70 70 |s name a|s it app|
|00005c90| 65 61 72 73 20 69 6e 20 | 74 68 65 20 41 70 70 6c |ears in |the Appl|
|00005ca0| 69 63 61 74 69 6f 6e 20 | 6d 65 6e 75 2c 20 74 68 |ication |menu, th|
|00005cb0| 65 20 74 79 70 65 20 61 | 6e 64 20 73 69 67 6e 61 |e type a|nd signa|
|00005cc0| 74 75 72 65 20 6f 66 20 | 74 68 65 20 61 70 70 6c |ture of |the appl|
|00005cd0| 69 63 61 74 69 6f 6e 2c | 20 74 68 65 20 6e 75 6d |ication,| the num|
|00005ce0| 62 65 72 20 6f 66 20 62 | 79 74 65 73 20 69 6e 20 |ber of b|ytes in |
|00005cf0| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |the appl|ication |
|00005d00| 70 61 72 74 69 74 69 6f | 6e 2c 20 74 68 65 20 6e |partitio|n, the n|
|00005d10| 75 6d 62 65 72 20 6f 66 | 20 66 72 65 65 20 62 79 |umber of| free by|
|00005d20| 74 65 73 20 69 6e 20 74 | 68 65 20 61 70 70 6c 69 |tes in t|he appli|
|00005d30| 63 61 74 69 6f 6e 20 68 | 65 61 70 2c 20 74 68 65 |cation h|eap, the|
|00005d40| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 74 68 61 | applica|tion tha|
|00005d50| 74 20 6c 61 75 6e 63 68 | 65 64 20 74 68 65 20 61 |t launch|ed the a|
|00005d60| 70 70 6c 69 63 61 74 69 | 6f 6e 2c 20 61 6e 64 20 |pplicati|on, and |
|00005d70| 6f 74 68 65 72 20 69 6e | 66 6f 72 6d 61 74 69 6f |other in|formatio|
|00005d80| 6e 2e 0d 54 68 65 20 47 | 65 74 50 72 6f 63 65 73 |n..The G|etProces|
|00005d90| 73 49 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 66 75 6e |sInforma|tion fun|
|00005da0| 63 74 69 6f 6e 20 72 65 | 74 75 72 6e 73 20 69 6e |ction re|turns in|
|00005db0| 66 6f 72 6d 61 74 69 6f | 6e 20 69 6e 20 61 20 70 |formatio|n in a p|
|00005dc0| 72 6f 63 65 73 73 20 69 | 6e 66 6f 72 6d 61 74 69 |rocess i|nformati|
|00005dd0| 6f 6e 20 72 65 63 6f 72 | 64 2c 20 77 68 69 63 68 |on recor|d, which|
|00005de0| 20 69 73 20 64 65 66 69 | 6e 65 64 20 62 79 20 74 | is defi|ned by t|
|00005df0| 68 65 20 50 72 6f 63 65 | 73 73 49 6e 66 6f 52 65 |he Proce|ssInfoRe|
|00005e00| 63 20 64 61 74 61 20 74 | 79 70 65 2e 0d 54 59 50 |c data t|ype..TYP|
|00005e10| 45 20 50 72 6f 63 65 73 | 73 49 6e 66 6f 52 65 63 |E Proces|sInfoRec|
|00005e20| 20 3d 0d 09 52 45 43 4f | 52 44 0d 09 09 70 72 6f | =..RECO|RD...pro|
|00005e30| 63 65 73 73 49 6e 66 6f | 4c 65 6e 67 74 68 3a 09 |cessInfo|Length:.|
|00005e40| 09 09 09 09 09 09 4c 6f | 6e 67 49 6e 74 3b 09 09 |......Lo|ngInt;..|
|00005e50| 09 09 09 7b 6c 65 6e 67 | 74 68 20 6f 66 20 70 72 |...{leng|th of pr|
|00005e60| 6f 63 65 73 73 20 69 6e | 66 6f 20 72 65 63 6f 72 |ocess in|fo recor|
|00005e70| 64 7d 0d 09 09 70 72 6f | 63 65 73 73 4e 61 6d 65 |d}...pro|cessName|
|00005e80| 3a 09 09 09 09 09 09 09 | 53 74 72 69 6e 67 50 74 |:.......|StringPt|
|00005e90| 72 3b 09 09 09 09 09 7b | 6e 61 6d 65 20 6f 66 20 |r;.....{|name of |
|00005ea0| 74 68 69 73 20 70 72 6f | 63 65 73 73 7d 0d 09 09 |this pro|cess}...|
|00005eb0| 70 72 6f 63 65 73 73 4e | 75 6d 62 65 72 3a 09 09 |processN|umber:..|
|00005ec0| 09 09 09 09 09 50 72 6f | 63 65 73 73 53 65 72 69 |.....Pro|cessSeri|
|00005ed0| 61 6c 4e 75 6d 62 65 72 | 3b 09 0d 09 09 09 09 09 |alNumber|;.......|
|00005ee0| 09 09 09 09 09 09 09 09 | 09 7b 70 73 6e 20 6f 66 |........|.{psn of|
|00005ef0| 20 74 68 69 73 20 70 72 | 6f 63 65 73 73 7d 0d 09 | this pr|ocess}..|
|00005f00| 09 70 72 6f 63 65 73 73 | 54 79 70 65 3a 09 09 09 |.process|Type:...|
|00005f10| 09 09 09 09 4c 6f 6e 67 | 49 6e 74 3b 09 09 09 09 |....Long|Int;....|
|00005f20| 09 7b 66 69 6c 65 20 74 | 79 70 65 20 6f 66 20 61 |.{file t|ype of a|
|00005f30| 70 70 6c 69 63 61 74 69 | 6f 6e 20 66 69 6c 65 7d |pplicati|on file}|
|00005f40| 0d 09 09 70 72 6f 63 65 | 73 73 53 69 67 6e 61 74 |...proce|ssSignat|
|00005f50| 75 72 65 3a 09 09 09 09 | 09 09 09 4f 53 54 79 70 |ure:....|...OSTyp|
|00005f60| 65 3b 09 09 09 09 09 7b | 73 69 67 6e 61 74 75 72 |e;.....{|signatur|
|00005f70| 65 20 6f 66 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |e of app|lication|
|00005f80| 20 66 69 6c 65 7d 0d 09 | 09 70 72 6f 63 65 73 73 | file}..|.process|
|00005f90| 4d 6f 64 65 3a 09 09 09 | 09 09 09 09 4c 6f 6e 67 |Mode:...|....Long|
|00005fa0| 49 6e 74 3b 09 09 09 09 | 09 7b 27 53 49 5a 45 27 |Int;....|.{'SIZE'|
|00005fb0| 20 72 65 73 6f 75 72 63 | 65 20 66 6c 61 67 73 7d | resourc|e flags}|
|00005fc0| 0d 09 09 70 72 6f 63 65 | 73 73 4c 6f 63 61 74 69 |...proce|ssLocati|
|00005fd0| 6f 6e 3a 09 09 09 09 09 | 09 09 50 74 72 3b 09 09 |on:.....|..Ptr;..|
|00005fe0| 09 09 09 7b 61 64 64 72 | 65 73 73 20 6f 66 20 70 |...{addr|ess of p|
|00005ff0| 61 72 74 69 74 69 6f 6e | 7d 0d 09 09 70 72 6f 63 |artition|}...proc|
|00006000| 65 73 73 53 69 7a 65 3a | 09 09 09 09 09 09 09 4c |essSize:|.......L|
|00006010| 6f 6e 67 49 6e 74 3b 09 | 09 09 09 09 7b 70 61 72 |ongInt;.|....{par|
|00006020| 74 69 74 69 6f 6e 20 73 | 69 7a 65 7d 0d 09 09 70 |tition s|ize}...p|
|00006030| 72 6f 63 65 73 73 46 72 | 65 65 4d 65 6d 3a 20 09 |rocessFr|eeMem: .|
|00006040| 09 09 09 09 09 09 4c 6f | 6e 67 49 6e 74 3b 09 09 |......Lo|ngInt;..|
|00006050| 09 09 09 7b 66 72 65 65 | 20 62 79 74 65 73 20 69 |...{free| bytes i|
|00006060| 6e 20 68 65 61 70 7d 0d | 09 09 70 72 6f 63 65 73 |n heap}.|..proces|
|00006070| 73 4c 61 75 6e 63 68 65 | 72 3a 09 09 09 09 09 09 |sLaunche|r:......|
|00006080| 09 50 72 6f 63 65 73 73 | 53 65 72 69 61 6c 4e 75 |.Process|SerialNu|
|00006090| 6d 62 65 72 3b 0d 09 09 | 09 09 09 09 09 09 09 09 |mber;...|........|
|000060a0| 09 09 09 09 7b 70 72 6f | 63 65 73 73 20 74 68 61 |....{pro|cess tha|
|000060b0| 74 20 6c 61 75 6e 63 68 | 65 64 20 74 68 69 73 20 |t launch|ed this |
|000060c0| 6f 6e 65 7d 0d 09 09 70 | 72 6f 63 65 73 73 4c 61 |one}...p|rocessLa|
|000060d0| 75 6e 63 68 44 61 74 65 | 3a 09 09 09 09 09 09 09 |unchDate|:.......|
|000060e0| 4c 6f 6e 67 49 6e 74 3b | 09 09 09 09 09 7b 74 69 |LongInt;|.....{ti|
|000060f0| 6d 65 20 77 68 65 6e 20 | 6c 61 75 6e 63 68 65 64 |me when |launched|
|00006100| 7d 0d 09 09 70 72 6f 63 | 65 73 73 41 63 74 69 76 |}...proc|essActiv|
|00006110| 65 54 69 6d 65 3a 09 09 | 09 09 09 09 09 4c 6f 6e |eTime:..|.....Lon|
|00006120| 67 49 6e 74 3b 09 09 09 | 09 09 7b 61 63 63 75 6d |gInt;...|..{accum|
|00006130| 75 6c 61 74 65 64 20 43 | 50 55 20 74 69 6d 65 7d |ulated C|PU time}|
|00006140| 0d 09 09 70 72 6f 63 65 | 73 73 41 70 70 53 70 65 |...proce|ssAppSpe|
|00006150| 63 3a 09 09 09 09 09 09 | 09 46 53 53 70 65 63 50 |c:......|.FSSpecP|
|00006160| 74 72 09 09 09 3b 09 09 | 7b 6c 6f 63 61 74 69 6f |tr...;..|{locatio|
|00006170| 6e 20 6f 66 20 74 68 65 | 20 66 69 6c 65 7d 0d 09 |n of the| file}..|
|00006180| 45 4e 44 3b 0d 59 6f 75 | 20 73 70 65 63 69 66 79 |END;.You| specify|
|00006190| 20 74 68 65 20 76 61 6c | 75 65 73 20 66 6f 72 20 | the val|ues for |
|000061a0| 74 68 72 65 65 20 66 69 | 65 6c 64 73 20 6f 66 20 |three fi|elds of |
|000061b0| 74 68 65 20 70 72 6f 63 | 65 73 73 20 69 6e 66 6f |the proc|ess info|
|000061c0| 72 6d 61 74 69 6f 6e 20 | 72 65 63 6f 72 64 3a 20 |rmation |record: |
|000061d0| 70 72 6f 63 65 73 73 49 | 6e 66 6f 4c 65 6e 67 74 |processI|nfoLengt|
|000061e0| 68 2c 20 70 72 6f 63 65 | 73 73 4e 61 6d 65 2c 20 |h, proce|ssName, |
|000061f0| 61 6e 64 20 70 72 6f 63 | 65 73 73 41 70 70 53 70 |and proc|essAppSp|
|00006200| 65 63 2e 20 59 6f 75 20 | 6d 75 73 74 20 65 69 74 |ec. You |must eit|
|00006210| 68 65 72 20 73 65 74 20 | 74 68 65 20 70 72 6f 63 |her set |the proc|
|00006220| 65 73 73 4e 61 6d 65 20 | 61 6e 64 20 70 72 6f 63 |essName |and proc|
|00006230| 65 73 73 41 70 70 53 70 | 65 63 20 66 69 65 6c 64 |essAppSp|ec field|
|00006240| 73 20 74 6f 20 4e 49 4c | 20 6f 72 20 73 65 74 20 |s to NIL| or set |
|00006250| 74 68 65 73 65 20 66 69 | 65 6c 64 73 20 74 6f 20 |these fi|elds to |
|00006260| 70 6f 69 6e 74 20 74 6f | 20 6d 65 6d 6f 72 79 20 |point to| memory |
|00006270| 74 68 61 74 20 79 6f 75 | 20 68 61 76 65 20 61 6c |that you| have al|
|00006280| 6c 6f 63 61 74 65 64 20 | 66 6f 72 20 74 68 65 6d |located |for them|
|00006290| 2e 20 54 68 65 20 47 65 | 74 50 72 6f 63 65 73 73 |. The Ge|tProcess|
|000062a0| 49 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 66 75 6e 63 |Informat|ion func|
|000062b0| 74 69 6f 6e 20 72 65 74 | 75 72 6e 73 20 69 6e 66 |tion ret|urns inf|
|000062c0| 6f 72 6d 61 74 69 6f 6e | 20 69 6e 20 61 6c 6c 20 |ormation| in all |
|000062d0| 6f 74 68 65 72 20 66 69 | 65 6c 64 73 20 6f 66 20 |other fi|elds of |
|000062e0| 74 68 65 20 70 72 6f 63 | 65 73 73 20 69 6e 66 6f |the proc|ess info|
|000062f0| 72 6d 61 74 69 6f 6e 20 | 72 65 63 6f 72 64 2e 20 |rmation |record. |
|00006300| 53 65 65 20 d2 50 72 6f | 63 65 73 73 20 49 6e 66 |See .Pro|cess Inf|
|00006310| 6f 72 6d 61 74 69 6f 6e | 20 52 65 63 6f 72 64 d3 |ormation| Record.|
|00006320| 20 6f 6e 20 70 61 67 65 | 20 31 2d 32 30 20 66 6f | on page| 1-20 fo|
|00006330| 72 20 61 20 63 6f 6d 70 | 6c 65 74 65 20 64 65 73 |r a comp|lete des|
|00006340| 63 72 69 70 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |cription| of the |
|00006350| 66 69 65 6c 64 73 20 6f | 66 20 74 68 69 73 20 72 |fields o|f this r|
|00006360| 65 63 6f 72 64 2e 0d 4c | 69 73 74 69 6e 67 20 31 |ecord..L|isting 1|
|00006370| 2d 31 20 73 68 6f 77 73 | 20 68 6f 77 20 79 6f 75 |-1 shows| how you|
|00006380| 20 63 61 6e 20 75 73 65 | 20 74 68 65 20 47 65 74 | can use| the Get|
|00006390| 4e 65 78 74 50 72 6f 63 | 65 73 73 20 66 75 6e 63 |NextProc|ess func|
|000063a0| 74 69 6f 6e 20 77 69 74 | 68 20 74 68 65 20 47 65 |tion wit|h the Ge|
|000063b0| 74 50 72 6f 63 65 73 73 | 49 6e 66 6f 72 6d 61 74 |tProcess|Informat|
|000063c0| 69 6f 6e 20 66 75 6e 63 | 74 69 6f 6e 20 74 6f 20 |ion func|tion to |
|000063d0| 73 65 61 72 63 68 20 74 | 68 65 20 70 72 6f 63 65 |search t|he proce|
|000063e0| 73 73 20 6c 69 73 74 20 | 66 6f 72 20 61 20 73 70 |ss list |for a sp|
|000063f0| 65 63 69 66 69 63 20 70 | 72 6f 63 65 73 73 2e 20 |ecific p|rocess. |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.